master
ck 5 years ago
parent a36beb6f06
commit a9dfe5b1a4

@ -1,13 +0,0 @@
<component name="libraryTable">
<library name="Maven: com.baomidou:mybatis-plus:3.3.2">
<CLASSES>
<root url="jar://D:/repository/com/baomidou/mybatis-plus/3.3.2/mybatis-plus-3.3.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://D:/repository/com/baomidou/mybatis-plus/3.3.2/mybatis-plus-3.3.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://D:/repository/com/baomidou/mybatis-plus/3.3.2/mybatis-plus-3.3.2-sources.jar!/" />
</SOURCES>
</library>
</component>

@ -1,13 +0,0 @@
<component name="libraryTable">
<library name="Maven: com.baomidou:mybatis-plus-boot-starter:3.3.2">
<CLASSES>
<root url="jar://D:/repository/com/baomidou/mybatis-plus-boot-starter/3.3.2/mybatis-plus-boot-starter-3.3.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://D:/repository/com/baomidou/mybatis-plus-boot-starter/3.3.2/mybatis-plus-boot-starter-3.3.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://D:/repository/com/baomidou/mybatis-plus-boot-starter/3.3.2/mybatis-plus-boot-starter-3.3.2-sources.jar!/" />
</SOURCES>
</library>
</component>

@ -1,13 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.github.jsqlparser:jsqlparser:1.0">
<library name="Maven: com.github.jsqlparser:jsqlparser:2.0">
<CLASSES>
<root url="jar://D:/repository/com/github/jsqlparser/jsqlparser/1.0/jsqlparser-1.0.jar!/" />
<root url="jar://D:/repository/com/github/jsqlparser/jsqlparser/2.0/jsqlparser-2.0.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://D:/repository/com/github/jsqlparser/jsqlparser/1.0/jsqlparser-1.0-javadoc.jar!/" />
<root url="jar://D:/repository/com/github/jsqlparser/jsqlparser/2.0/jsqlparser-2.0-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://D:/repository/com/github/jsqlparser/jsqlparser/1.0/jsqlparser-1.0-sources.jar!/" />
<root url="jar://D:/repository/com/github/jsqlparser/jsqlparser/2.0/jsqlparser-2.0-sources.jar!/" />
</SOURCES>
</library>
</component>

@ -1,13 +1,13 @@
<component name="libraryTable">
<library name="Maven: com.github.pagehelper:pagehelper:5.1.4">
<library name="Maven: com.github.pagehelper:pagehelper:5.1.10">
<CLASSES>
<root url="jar://D:/repository/com/github/pagehelper/pagehelper/5.1.4/pagehelper-5.1.4.jar!/" />
<root url="jar://D:/repository/com/github/pagehelper/pagehelper/5.1.10/pagehelper-5.1.10.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://D:/repository/com/github/pagehelper/pagehelper/5.1.4/pagehelper-5.1.4-javadoc.jar!/" />
<root url="jar://D:/repository/com/github/pagehelper/pagehelper/5.1.10/pagehelper-5.1.10-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://D:/repository/com/github/pagehelper/pagehelper/5.1.4/pagehelper-5.1.4-sources.jar!/" />
<root url="jar://D:/repository/com/github/pagehelper/pagehelper/5.1.10/pagehelper-5.1.10-sources.jar!/" />
</SOURCES>
</library>
</component>

@ -81,12 +81,12 @@
<version>1.3.5</version>
</dependency>
<!--&lt;!&ndash; pageHelper &ndash;&gt;-->
<!--<dependency>-->
<!--<groupId>com.github.pagehelper</groupId>-->
<!--<artifactId>pagehelper</artifactId>-->
<!--<version>5.1.10</version>-->
<!--</dependency>-->
<!-- pageHelper -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>5.1.10</version>
</dependency>
<!-- log4j2 -->
<dependency>
@ -146,17 +146,7 @@
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.3.2</version>
<exclusions>
<exclusion>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>

@ -90,6 +90,8 @@
<orderEntry type="library" name="Maven: tk.mybatis:mapper-extra:1.0.1" level="project" />
<orderEntry type="library" name="Maven: tk.mybatis:mapper-spring-boot-autoconfigure:2.0.2" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.generator:mybatis-generator-core:1.3.5" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.1.10" level="project" />
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:2.0" level="project" />
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-log4j2:2.1.3.RELEASE" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-slf4j-impl:2.11.2" level="project" />
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.11.2" level="project" />
@ -130,8 +132,6 @@
<orderEntry type="library" name="Maven: commons-beanutils:commons-beanutils:1.8.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.shiro:shiro-web:1.3.2" level="project" />
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.16.16" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-boot-starter:3.3.2" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus:3.3.2" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-generator:3.3.2" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-extension:3.3.2" level="project" />
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.3.2" level="project" />
@ -141,8 +141,6 @@
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2" level="project" />
<orderEntry type="library" name="Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:1.3.2" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper-spring-boot-autoconfigure:1.2.5" level="project" />
<orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.1.4" level="project" />
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:1.0" level="project" />
<orderEntry type="library" name="Maven: com.aliyun.oss:aliyun-sdk-oss:2.8.3" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.7" level="project" />
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.11" level="project" />

@ -1,22 +1,22 @@
package com.jingcheng.template.conf;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableTransactionManagement
@Configuration
public class MybatisPlusConfig {
/**
*
*/
@Bean
public PaginationInterceptor paginationInterceptor() {
return new PaginationInterceptor();
}
}
//package com.jingcheng.template.conf;
//
//import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.transaction.annotation.EnableTransactionManagement;
//
//
//@EnableTransactionManagement
//@Configuration
//public class MybatisPlusConfig {
//
// /**
// * 分页插件
// */
// @Bean
// public PaginationInterceptor paginationInterceptor() {
// return new PaginationInterceptor();
// }
//
//
//}

@ -5,22 +5,21 @@ import com.jingcheng.template.model.AwardRecord;
import com.jingcheng.template.service.AwardRecordService;
import com.jingcheng.template.util.AjaxRequest;
import com.jingcheng.template.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@RestController
@RequestMapping("/award-record")
@CrossOrigin
public class AwardRecordController extends BaseController<AwardRecordService, AwardRecord>{
@Resource
@Autowired
private AwardRecordService awardRecordService;
@RequestMapping("get-award-record-num")
public AjaxResult getUsers(@RequestBody AjaxRequest ajaxRequest){
AjaxResult ajaxResult = new AjaxResult();
@ -96,7 +95,7 @@ public class AwardRecordController extends BaseController<AwardRecordService, Aw
return ajaxResult;
}
@RequestMapping("get-award-record-list")
@RequestMapping("insert-fail-record")
public AjaxResult insertFailRecord(@RequestBody AjaxRequest ajaxRequest){
AjaxResult ajaxResult = new AjaxResult();
JSONObject jsonObject = ajaxRequest.getData();

@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.jingcheng.template.constants.Constants;
import com.jingcheng.template.mapper.AwardRecordMapper;
import com.jingcheng.template.mapper.AwardRuleMapper;
@ -31,8 +30,7 @@ import java.util.List;
@Service("awardRecordService")
@Transactional
public class AwardRecordServiceImpl extends BaseServiceImpl<AwardRecordMapper, AwardRecord>
implements AwardRecordService<AwardRecord> {
public class AwardRecordServiceImpl extends BaseServiceImpl<AwardRecordMapper, AwardRecord> implements AwardRecordService<AwardRecord> {
@Resource
private AwardRecordMapper awardRecordMapper;
@Resource
@ -40,6 +38,7 @@ public class AwardRecordServiceImpl extends BaseServiceImpl<AwardRecordMapper, A
@Resource
private UsersMapper usersMapper;
private Logger logger = LogUtils.getBussinessLogger();
@SneakyThrows
@ -210,7 +209,7 @@ public class AwardRecordServiceImpl extends BaseServiceImpl<AwardRecordMapper, A
queryWrapper.ge("state", 1);
}
Page<AwardRecord> page = new Page<>(pageNum, pageSize, true);
IPage<AwardRecord> iPage = awardRecordMapper.selectPage(page, queryWrapper);
IPage<AwardRecord> iPage = awardRecordMapper.selectPage(page,queryWrapper);
List<AwardRecord> awardRecordList = iPage.getRecords();
Long total = iPage.getTotal();
List<AwardRecordVo> awardRecordVoList = new ArrayList<>();

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
~ The MIT License (MIT)
~
~ Copyright (c) 2014-2016 abel533@gmail.com
~
~ Permission is hereby granted, free of charge, to any person obtaining a copy
~ of this software and associated documentation files (the "Software"), to deal
~ in the Software without restriction, including without limitation the rights
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
~ copies of the Software, and to permit persons to whom the Software is
~ furnished to do so, subject to the following conditions:
~
~ The above copyright notice and this permission notice shall be included in
~ all copies or substantial portions of the Software.
~
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
~ THE SOFTWARE.
-->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.jingcheng.template.mapper.AwardRecordMapper">
</mapper>
Loading…
Cancel
Save