Commit b58f7154 authored by hubaoshan's avatar hubaoshan

jnp7sj

parent b2dbabeb
package org.rcisoft.bus.jnP7sj.controller;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.rcisoft.bus.jnP7sj.entity.jnP7sj;
import org.rcisoft.bus.jnP7sj.service.jnP7sjService;
import org.rcisoft.core.anno.CyOpeLogAnno;
import org.rcisoft.core.constant.CyMessCons;
import org.rcisoft.core.controller.CyPaginationController;
import org.rcisoft.core.model.CyGridModel;
import org.rcisoft.core.model.CyPersistModel;
import org.rcisoft.core.operlog.enums.CyLogTypeEnum;
import org.rcisoft.core.result.CyResult;
import org.rcisoft.core.util.CyResultGenUtil;
import org.rcisoft.util.ExportToExcelUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import javax.naming.Binding;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.util.List;
public class jnP7sjController {
@Autowired
@RestController
@RequestMapping("/jnP7sj")
public class jnP7sjController extends CyPaginationController<jnP7sj> {
@Autowired
private jnP7sjService jnP7sjServiceImpl;
public CyResult add(@Valid jnP7sj jnP7sj, BindingResult bindingResult){
CyPersistModel data=
}
@CyOpeLogAnno(title = "system-jnP7sj管理-新增jnP7sj", businessType = CyLogTypeEnum.INSERT)
@ApiOperation(value = "添加jnP7sj", notes = "添加jnP7sj")
@PostMapping(value = "/add")
public CyResult add(@Valid jnP7sj jnP7sj, BindingResult bindingResult) {
CyPersistModel data = jnP7sjServiceImpl.persist(jnP7sj);
return CyResultGenUtil.builder(data, CyMessCons.MESSAGE_ALERT_SUCCESS,
CyMessCons.MESSAGE_ALERT_ERROR, jnP7sj);
}
@CyOpeLogAnno(title = "system-jnP7sj管理-逻辑删除jnP7sj", businessType = CyLogTypeEnum.DELETE)
@ApiOperation(value = "逻辑删除jnP7sj", notes = "逻辑删除jnP7sj")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = true, dataType = "varchar")})
@DeleteMapping("/deleteLogical/{businessId:\\w+}")
public CyResult deleteLogical(@PathVariable Integer businessId, jnP7sj jnP7sj) {
jnP7sj.setBusinessId(businessId);
CyPersistModel data = jnP7sjServiceImpl.removeLogical(jnP7sj);
return CyResultGenUtil.builder(data, CyMessCons.MESSAGE_ALERT_SUCCESS, CyMessCons.MESSAGE_ALERT_ERROR, jnP7sj);
}
@CyOpeLogAnno(title = "system-jnP7sj管理-删除jnP7sj", businessType = CyLogTypeEnum.DELETE)
@ApiOperation(value = "删除jnP7sj", notes = "删除jnP7sj")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = true, dataType = "varchar")})
@DeleteMapping("/delete/{businessId:\\w+}")
public CyResult dalete(@PathVariable Integer businessId, jnP7sj jnP7sj) {
jnP7sj.setBusinessId(businessId);
CyPersistModel data = jnP7sjServiceImpl.remove(jnP7sj);
return CyResultGenUtil.builder(data, CyMessCons.MESSAGE_ALERT_SUCCESS, CyMessCons.MESSAGE_ALERT_ERROR, jnP7sj);
}
@CyOpeLogAnno(title = "system-jnP7sj管理-修改jnP7sj", businessType = CyLogTypeEnum.UPDATE)
@ApiOperation(value = "修改jnP7sj", notes = "修改jnP7sj")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = false, dataType = "varchar")})
@PutMapping("/update/{businessId:\\w+}")
public CyResult update(@PathVariable Integer businessId, jnP7sj jnP7sj) {
jnP7sj.setBusinessId(businessId);
CyPersistModel data = jnP7sjServiceImpl.merge(jnP7sj);
return CyResultGenUtil.builder(data, CyMessCons.MESSAGE_ALERT_SUCCESS, CyMessCons.MESSAGE_ALERT_ERROR, jnP7sj);
}
@CyOpeLogAnno(title = "system-jnP7sj管理-查询jnP7sj", businessType = CyLogTypeEnum.QUERY)
@ApiOperation(value = "查询单一jnP7sj", notes = "查询单一jnP7sj")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = true, dataType = "varchar")})
@GetMapping("/detail/{businessId:\\w+}")
public CyResult detail(@PathVariable Integer businessId) {
return CyResultGenUtil.builder(new CyPersistModel(1),
CyMessCons.MESSAGE_ALERT_ERROR,
CyMessCons.MESSAGE_ALERT_ERROR,
jnP7sjServiceImpl.findById(businessId));
}
@CyOpeLogAnno(title = "system-jnP7sj管理-查询jnP7sj", businessType = CyLogTypeEnum.QUERY)
@ApiOperation(value="查询jnP7sj集合", notes="查询jnP7sj集合")
@GetMapping(value = "/queryjnP7sjs")
public CyResult queryjnP7sjs(jnP7sj jnP7sj){
return CyResultGenUtil.builder(new CyPersistModel(1),
CyMessCons.MESSAGE_ALERT_SUCCESS,
CyMessCons.MESSAGE_ALERT_ERROR,
jnP7sjServiceImpl.findAll(jnP7sj));
}
@CyOpeLogAnno(title = "system-jnP7sj管理-查询jnP7sj", businessType = CyLogTypeEnum.QUERY)
@ApiOperation(value="分页查询jnP7sj集合", notes="分页查询jnP7sj集合")
@GetMapping(value = "/queryjnP7sjByPagination")
public CyGridModel listByPagination(jnP7sj jnP7sj) {
jnP7sjServiceImpl.findAllByPagination(getPaginationUtility(), jnP7sj);
return getGridModelResponse();
}
@CyOpeLogAnno(title = "system-jnP7sj管理-查询jnP7sj", businessType = CyLogTypeEnum.EXPORT)
@ApiOperation(value = "导出jnP7sj信息", notes = "导出jnP7sj信息")
@GetMapping(value = "/export")
public void outjnP7sj(HttpServletResponse response, jnP7sj jnP7sj, @PathVariable @RequestParam(defaultValue = "0") String excelId) {
String excelName="";
switch(excelId){
case "0": excelName="jnP7sj信息.xls";break;
case "1": excelName="jnP7sj信息.xlsx";break;
case "2": excelName="jnP7sj信息.csv";break;
}
List<jnP7sj> jnP7sjList = jnP7sjServiceImpl.export(jnP7sj);
ExportToExcelUtil.exportExcel(jnP7sjList, "jnP7sj信息", "jnP7sj信息", jnP7sj.class, excelName, response);
}
}
......@@ -2,26 +2,17 @@ package org.rcisoft.bus.jnP7sj.dao;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.ResultHandler;
import org.rcisoft.bus.jnP7sj.entity.jnP7sj;
import org.rcisoft.bus.jnsp7xtm.vo.Jnsp7xtmVo;
import org.rcisoft.core.mapper.CyBaseMapper;
import org.rcisoft.core.model.CyPageInfo;
import java.util.List;
public interface Jnsp7xtmDqsjRepository {
public interface jnP7sjRepository extends CyBaseMapper<jnP7sj> {
List<jnP7sj> queryjnP7sj(@Param("entity") jnP7sj jnP7sj);
IPage<jnP7sj> queryjnP7Paged(CyPageInfo cyPageInfo, @Param("entity") jnP7sj jnP7sj);
IPage<jnP7sj> queryjnP7sjPaged(CyPageInfo cyPageInfo, @Param("entity") jnP7sj jnP7sj);
List<String> getMonthList();
void truncateJnsp7xtmDqsj(@Param("shema") String shema);
void streamQuery(@Param("handler") ResultHandler<Jnsp7xtmVo> handler);
void batchAddJnp7sj(@Param("list") List<jnP7sj> list);
}
package org.rcisoft.bus.jnP7sj.entity;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;
import org.rcisoft.core.entity.CyIdIncreEntity;
import java.math.BigDecimal;
@Data
@TableName("jnsp7xtm_dqsj")
public class jnP7sj {
@TableId(value = "business_id", type = IdType.AUTO)
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.INTEGER)
@ApiModelProperty(name = "businessId", value = "businessId", required = true, dataType = "integer")
private Integer businessId;
public class jnP7sj extends CyIdIncreEntity<jnP7sj> {
@Excel(name = "term", orderNum = "0", width = 20)
private Integer businessId;
@Excel(name = "term", orderNum = "1", width = 20)
private String term;
@Excel(name = "half", orderNum = "1", width = 20)
@Excel(name = "half", orderNum = "2", width = 20)
private String half;
@Excel(name = "quarter", orderNum = "0", width = 20)
@Excel(name = "quarter", orderNum = "3", width = 20)
private String quarter;
@Excel(name = "month", orderNum = "0", width = 20)
@Excel(name = "month", orderNum = "4", width = 20)
private String month;
@Excel(name = "cc", orderNum = "0", width = 20)
@Excel(name = "cc", orderNum = "5", width = 20)
private String cc;
@Excel(name="cn", orderNum = "0",width = 20)
@Excel(name="cn", orderNum = "6",width = 20)
private String cn;
@Excel(name="io", orderNum = "0",width = 20)
@Excel(name="io", orderNum = "7",width = 20)
private String io;
@Excel(name="route", orderNum = "0",width = 20)
@Excel(name="route", orderNum = "8",width = 20)
private String route;
@Excel(name="pc", orderNum = "0",width = 20)
@Excel(name="pc", orderNum = "9",width = 20)
private String pc;
@Excel(name="factory", orderNum = "0",width = 20)
@Excel(name="factory", orderNum = "10",width = 20)
private String factory;
@Excel(name="size", orderNum = "0",width = 20)
@Excel(name="size", orderNum = "11",width = 20)
private String size;
@Excel(name="pn", orderNum = "0",width = 20)
@Excel(name="pn", orderNum = "12",width = 20)
private String pn;
@Excel(name="sypn", orderNum = "0",width = 20)
@Excel(name="sypn", orderNum = "13",width = 20)
private String sypn;
@Excel(name="po", orderNum = "0",width = 20)
@Excel(name="po", orderNum = "14",width = 20)
private BigDecimal po;
@Excel(name="fc", orderNum = "0",width = 20)
@Excel(name="fc", orderNum = "15",width = 20)
private BigDecimal fc;
@Excel(name="qty", orderNum = "0",width = 20)
@Excel(name="qty", orderNum = "16",width = 20)
private BigDecimal qty;
@Excel(name="up", orderNum = "0",width = 20)
private BigDecimal up;
@Excel(name="currency", orderNum = "0",width = 20)
private String currency;
@Excel(name="rate", orderNum = "0",width = 20)
private BigDecimal rate;
@Excel(name="amt", orderNum = "0",width = 20)
private BigDecimal amt;
@Excel(name="custGroup", orderNum = "0",width = 20)
private String custGroup;
@Excel(name="custGroup2", orderNum = "0",width = 20)
private String custGroup2;
@Excel(name="custRt1", orderNum = "0",width = 20)
private String custRt1;
@Excel(name="custIo", orderNum = "0",width = 20)
private String custIo;
@Excel(name="custNewpic", orderNum = "0",width = 20)
private String custNewpic;
@Excel(name="custGroup1", orderNum = "0",width = 20)
private String custGroup1;
@Excel(name="custRt2", orderNum = "0",width = 20)
private String custRt2;
@Excel(name="custRout", orderNum = "0",width = 20)
private String custRout;
@Excel(name="custAddr", orderNum = "0",width = 20)
private String custAddr;
@Excel(name="custG0", orderNum = "0",width = 20)
private String custG0;
@Excel(name="custG20", orderNum = "0",width = 20)
private String custG20;
@Excel(name="custG30", orderNum = "0",width = 20)
private String custG30;
@Excel(name="custG201", orderNum = "0",width = 20)
private String custG201;
@Excel(name="custSave", orderNum = "0",width = 20)
private String custSave;
@Excel(name="custStype", orderNum = "0",width = 20)
private String custStype;
@Excel(name="custG1", orderNum = "0",width = 20)
private String custG1;
@Excel(name="custYj", orderNum = "0",width = 20)
private String custYj;
@Excel(name="custYj2", orderNum = "0",width = 20)
private String custYj2;
@Excel(name="custYj3", orderNum = "0",width = 20)
private String custYj3;
@Excel(name="custGc", orderNum = "0",width = 20)
private String custGc;
}
package org.rcisoft.bus.jnP7sj.service.impl;
public class jnP7sjServiceImpl {
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.rcisoft.bus.jnP7sj.dao.jnP7sjRepository;
import org.rcisoft.bus.jnP7sj.entity.jnP7sj;
import org.rcisoft.bus.jnP7sj.service.jnP7sjService;
import org.rcisoft.core.model.CyPageInfo;
import org.rcisoft.core.model.CyPersistModel;
import org.rcisoft.core.util.CyUserUtil;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Service
@Transactional(readOnly = true, propagation = Propagation.NOT_SUPPORTED)
@Slf4j
public class jnP7sjServiceImpl extends ServiceImpl<jnP7sjRepository, jnP7sj> implements jnP7sjService {
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT)
@Override
public CyPersistModel persist(jnP7sj jnP7sj) {
int line=baseMapper.insert(jnP7sj);
log.debug(CyUserUtil.getAuthenUsername()+"新增了ID为"+
jnP7sj.getBusinessId()+"的信息");
return new CyPersistModel(line);
}
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT)
@Override
public CyPersistModel remove(jnP7sj jnP7sj) {
int line = baseMapper.realDelete(jnP7sj);
log.debug(CyUserUtil.getAuthenUsername()+"删除了ID为"+
jnP7sj.getBusinessId()+"的信息");
return new CyPersistModel(line);
}
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT)
@Override
public CyPersistModel removeLogical(jnP7sj jnP7sj) {
jnP7sj.setDeleted();
int line = baseMapper.deleteById(jnP7sj);
log.debug(CyUserUtil.getAuthenUsername()+"逻辑删除了ID为"+
jnP7sj.getBusinessId()+"的信息");
return new CyPersistModel(line);
}
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT)
@Override
public CyPersistModel merge(jnP7sj jnP7sj) {
int line = baseMapper.updateById(jnP7sj);
log.debug(CyUserUtil.getAuthenUsername()+"修改了ID为"+ jnP7sj.getBusinessId()+"的信息");
return new CyPersistModel(line);
}
@Override
public jnP7sj findById(int id) {
return baseMapper.selectById(id);
}
@Override
public IPage<jnP7sj> findAllByPagination(CyPageInfo<jnP7sj> paginationUtility, jnP7sj jnP7sj) {
return baseMapper.queryjnP7sjPaged(paginationUtility,jnP7sj);
}
@Override
public List<jnP7sj> findAll(jnP7sj jnP7sj) {
return baseMapper.queryjnP7sj(jnP7sj);
}
@Override
public List<jnP7sj> export(jnP7sj jnP7sj) {
List<jnP7sj> jnP7sjList = baseMapper.queryjnP7sj(jnP7sj);
return jnP7sjList;
}
}
......@@ -4,22 +4,25 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import org.rcisoft.bus.jnP7sj.entity.jnP7sj;
import org.rcisoft.core.model.CyPageInfo;
import org.rcisoft.core.model.CyPersistModel;
import org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmOptionDto;
import java.util.List;
public interface jnP7sjService {
CyPersistModel persist(jnP7sj jnP7sj);
CyPersistModel remove(jnP7sj jnP7sj);
CyPersistModel removeLogical(jnP7sj jnP7sj);
CyPersistModel merge(jnP7sj jnP7sj);
jnP7sj findById(int id);
IPage<jnP7sj>findAllByPagination(CyPageInfo<jnP7sj>pageInfo, jnP7sj jnP7sj);
List<jnP7sj>findAll(jnP7sj jnP7sj);
List<jnP7sj>export(jnP7sj jnP7sj);
Jnsp7xtmOptionDto getMath();
CyPersistModel dataTableRese();
CyPersistModel monthlyTablePull(String takeId);
TaskInfo addTaskInfo();
CyPersistModel persist(jnP7sj jnP7sj);
CyPersistModel remove(jnP7sj jnP7sj);
CyPersistModel removeLogical(jnP7sj jnP7sj);
CyPersistModel merge(jnP7sj jnP7sj);
jnP7sj findById(int id);
IPage<jnP7sj> findAllByPagination(CyPageInfo<jnP7sj> paginationUtility, jnP7sj jnP7sj);
List<jnP7sj> findAll(jnP7sj jnP7sj);
List<jnP7sj> export(jnP7sj jnP7sj);
}
package org.rcisoft.bus.jnsp7xtm.vo;
import lombok.Data;
import org.rcisoft.bus.jnsp7xtm.entity.Jnsp7xtm;
/**
* @Author: gy
* @Date: 2024/5/14 13:43
* @Description:
*/
@Data
public class Jnsp7xtmVo extends Jnsp7xtm {
private String sypn;
private String custCode;
private String custName;
private String custGroup;
private String custGroup2;
private String custRt1;
private String custIo;
private String custNewpic;
private String custGroup1;
private String custRt2;
private String custRout;
private String custAddr;
private String custG0;
private String custG20;
private String custG30;
private String custG201;
private String custSave;
private String custStype;
private String custG1;
private String custYj;
private String custYj2;
private String custYj3;
private String custGc;
}
package org.rcisoft.bus.taskInfo.controller;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.rcisoft.bus.taskInfo.entity.taskInfo;
import org.rcisoft.bus.taskInfo.service.taskInfoService;
import org.rcisoft.core.anno.CyOpeLogAnno;
import org.rcisoft.core.constant.CyMessCons;
import org.rcisoft.core.controller.CyPaginationController;
import org.rcisoft.core.model.CyGridModel;
import org.rcisoft.core.model.CyPersistModel;
import org.rcisoft.core.operlog.enums.CyLogTypeEnum;
import org.rcisoft.core.result.CyResult;
import org.rcisoft.core.util.CyEpExcelUtil;
import org.rcisoft.core.util.CyResultGenUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.util.List;
@RestController
@RequestMapping("/taskInfo")
public class taskInfoController extends CyPaginationController<taskInfo> {
@Autowired
private taskInfoService taskInfoServiceImpl;
@CyOpeLogAnno(title = "system-taskInfo管理-新增taskInfo", businessType = CyLogTypeEnum.INSERT)
@ApiOperation(value = "添加taskInfo", notes = "添加taskInfo")
@PostMapping(value = "/add")
public CyResult add(@Valid taskInfo taskInfo, BindingResult bindingResult) {
CyPersistModel data = taskInfoServiceImpl.persist(taskInfo);
return CyResultGenUtil.builder(data,
CyMessCons.MESSAGE_ALERT_SUCCESS,
CyMessCons.MESSAGE_ALERT_ERROR,
taskInfo);
}
@CyOpeLogAnno(title = "system-?????管理-删除?????", businessType = CyLogTypeEnum.DELETE)
@ApiOperation(value = "逻辑删除?????", notes = "逻辑删除?????")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = true, dataType = "varchar")})
@DeleteMapping("/deleteLogical/{businessId:\\w+}")
public CyResult deleteLogical(@Valid taskInfo taskInfo, BindingResult bindingResult) {
CyPersistModel data = taskInfoServiceImpl.persist(taskInfo);
return CyResultGenUtil.builder(data,
CyMessCons.MESSAGE_ALERT_SUCCESS,
CyMessCons.MESSAGE_ALERT_ERROR,
taskInfo);
}
@CyOpeLogAnno(title = "system-?????管理-删除?????", businessType = CyLogTypeEnum.DELETE)
@ApiOperation(value = "删除?????", notes = "删除?????")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = true, dataType = "varchar")})
@DeleteMapping("/deleteLogical/{businessId:\\w+}")
public CyResult delete(@Valid taskInfo taskInfo, BindingResult bindingResult) {
CyPersistModel data = taskInfoServiceImpl.persist(taskInfo);
return CyResultGenUtil.builder(data,
CyMessCons.MESSAGE_ALERT_SUCCESS,
CyMessCons.MESSAGE_ALERT_ERROR,
taskInfo);
}
@CyOpeLogAnno(title = "system-?????管理-修改?????", businessType = CyLogTypeEnum.UPDATE)
@ApiOperation(value = "修改?????", notes = "修改?????")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = false, dataType = "varchar")})
@PutMapping("/update/{businessId:\\w+}")
public CyResult update(@Valid taskInfo taskInfo, BindingResult bindingResult) {
CyPersistModel data = taskInfoServiceImpl.persist(taskInfo);
return CyResultGenUtil.builder(data,
CyMessCons.MESSAGE_ALERT_SUCCESS,
CyMessCons.MESSAGE_ALERT_ERROR,
taskInfo);
}
@CyOpeLogAnno(title = "system-?????管理-查询?????", businessType = CyLogTypeEnum.QUERY)
@ApiOperation(value = "查询单一?????", notes = "查询单一?????")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = true, dataType = "varchar")})
@GetMapping("/detail/{businessId:\\w+}")
public CyResult detail(@Valid taskInfo taskInfo, BindingResult bindingResult) {
CyPersistModel data = taskInfoServiceImpl.persist(taskInfo);
return CyResultGenUtil.builder(data,
CyMessCons.MESSAGE_ALERT_SUCCESS,
CyMessCons.MESSAGE_ALERT_ERROR,
taskInfo);
}
@CyOpeLogAnno(title = "system-?????管理-查询?????", businessType = CyLogTypeEnum.QUERY)
@ApiOperation(value="查询?????集合", notes="查询?????集合")
@GetMapping(value = "/listAll")
public CyResult listAll(taskInfo taskInfo) {
return CyResultGenUtil.builder(new CyPersistModel(1),
CyMessCons.MESSAGE_ALERT_SUCCESS,
CyMessCons.MESSAGE_ALERT_ERROR,
taskInfoServiceImpl.findAll(taskInfo));
}
@CyOpeLogAnno(title = "system-?????管理-查询?????", businessType = CyLogTypeEnum.QUERY)
@ApiOperation(value="分页查询?????集合", notes="分页查询?????集合")
@GetMapping(value = "/list")
public CyGridModel listByPagination(taskInfo taskInfo) {
taskInfoServiceImpl.findAllByPagination(getPaginationUtility(), taskInfo);
return getGridModelResponse();
}
@CyOpeLogAnno(title = "system-?????管理-查询?????", businessType = CyLogTypeEnum.EXPORT)
@ApiOperation(value = "导出?????信息", notes = "导出?????信息")
@GetMapping(value = "/export")
public void outTaskInfo(HttpServletResponse response, taskInfo taskInfo, @PathVariable @RequestParam(defaultValue = "0") String excelId) {
String excelName="";
switch(excelId){
case "0": excelName="?????信息.xls";break;
case "1": excelName="?????信息.xlsx";break;
case "2": excelName="?????信息.csv";break;
}
List<taskInfo> taskInfoList = taskInfoServiceImpl.export(taskInfo);
CyEpExcelUtil.exportExcel(taskInfoList, "?????信息", "?????信息", taskInfo.class, excelName, response);
}
}
package org.rcisoft.bus.taskInfo.dao;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.rcisoft.bus.taskInfo.entity.taskInfo;
import org.rcisoft.core.mapper.CyBaseMapper;
import org.rcisoft.core.model.CyPageInfo;
import java.util.List;
public interface TaskInfoRepository extends CyBaseMapper<taskInfo> {
List<taskInfo> queryTaskInfos(@Param("entity") taskInfo taskInfo);
IPage<taskInfo> queryTaskInfosPaged(CyPageInfo cyPageInfo, @Param("entity") taskInfo taskInfo);
}
package org.rcisoft.bus.taskInfo.entity;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.rcisoft.core.entity.CyIdIncreEntity;
@Data
@TableName("task_info")
public class taskInfo extends CyIdIncreEntity<taskInfo> {
@Excel(name = "??id", orderNum = "0", width = 20)
private String tackId;
@Excel(name = "?? 0:??? 1:???", orderNum = "1", width = 20)
private String status;
@Excel(name = "??", orderNum = "2", width = 20)
private String type;
}
package org.rcisoft.bus.taskInfo.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.rcisoft.bus.taskInfo.dao.TaskInfoRepository;
import org.rcisoft.bus.taskInfo.entity.taskInfo;
import org.rcisoft.bus.taskInfo.service.taskInfoService;
import org.rcisoft.core.model.CyPageInfo;
import org.rcisoft.core.model.CyPersistModel;
import org.rcisoft.core.util.CyUserUtil;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Service
@Slf4j
@Transactional(readOnly = true, propagation = Propagation.NOT_SUPPORTED)
public class taskInfoServiceImpl extends ServiceImpl<TaskInfoRepository, taskInfo> implements taskInfoService {
@Override
public CyPersistModel persist(taskInfo taskInfo) {
int line = baseMapper.insert(taskInfo);
log.debug(CyUserUtil.getAuthenUsername() + "新增了ID为" + taskInfo.getBusinessId() + "的信息");
return new CyPersistModel(line);
}
@Override
public CyPersistModel remove(taskInfo taskInfo) {
int line = baseMapper.realDelete(taskInfo);
log.debug(CyUserUtil.getAuthenUsername() + "删除了ID为" + taskInfo.getBusinessId() + "的信息");
return new CyPersistModel(line);
}
@Override
public CyPersistModel removeLogical(taskInfo taskInfo) {
int line = baseMapper.deleteById(taskInfo);
log.debug(CyUserUtil.getAuthenUsername() + "删除了ID为" + taskInfo.getBusinessId() + "的信息");
return new CyPersistModel(line);
}
@Override
public CyPersistModel merge(taskInfo taskInfo) {
int line = baseMapper.updateById(taskInfo);
log.debug(CyUserUtil.getAuthenUsername() + "修改了ID为" + taskInfo.getBusinessId() + "的信息");
return new CyPersistModel(line);
}
@Override
public taskInfo findById(int id) {
return baseMapper.selectById(id);
}
@Override
public IPage<taskInfo> findAllByPagination(CyPageInfo<taskInfo> paginationUtility, taskInfo taskInfo) {
return baseMapper.queryTaskInfosPaged(paginationUtility, taskInfo);
}
@Override
public List<taskInfo> findAll(taskInfo taskInfo) {
return baseMapper.queryTaskInfos(taskInfo);
}
@Override
public List<taskInfo> export(taskInfo taskInfo) {
List<taskInfo> taskInfoList=baseMapper.queryTaskInfos(taskInfo);
return taskInfoList;
}
}
package org.rcisoft.bus.taskInfo.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.rcisoft.bus.taskInfo.entity.taskInfo;
import org.rcisoft.core.model.CyPageInfo;
import org.rcisoft.core.model.CyPersistModel;
import java.util.List;
public interface taskInfoService {
CyPersistModel persist(taskInfo taskInfo);
CyPersistModel remove(taskInfo taskInfo);
CyPersistModel removeLogical(taskInfo taskInfo);
CyPersistModel merge(taskInfo taskInfo);
taskInfo findById(int id);
IPage<taskInfo>findAllByPagination(CyPageInfo<taskInfo>paginationUtility ,taskInfo taskInfo);
List<taskInfo>findAll(taskInfo taskInfo);
List<taskInfo>export(taskInfo taskInfo);
}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.rcisoft.bus.jnP7sj.dao.Jnsp7xtmDqsjRepository">
<resultMap id="BaseResultMap" type="org.rcisoft.bus.jnP7sj.entity.jnP7sj">
<id column="business_id" javaType="BIGINT" property="businessId"/>
<result column="term" jdbcType="VARCHAR" property="term"/>
<result column="half" jdbcType="VARCHAR" property="half"/>
<result column="quarter" jdbcType="VARCHAR" property="quarter"/>
<result column="month" jdbcType="VARCHAR" property="month"/>
<result column="cc" jdbcType="VARCHAR" property="cc"/>
<result column="cn" jdbcType="VARCHAR" property="cn"/>
<result column="io" jdbcType="VARCHAR" property="io"/>
<result column="route" jdbcType="VARCHAR" property="route"/>
<result column="pc" jdbcType="VARCHAR" property="pc"/>
<result column="factory" jdbcType="VARCHAR" property="factory"/>
<result column="size" jdbcType="VARCHAR" property="size"/>
<result column="pn" jdbcType="VARCHAR" property="pn"/>
<result column="po" jdbcType="DECIMAL" property="po"/>
<result column="fc" jdbcType="DECIMAL" property="fc"/>
<result column="qty" jdbcType="DECIMAL" property="qty"/>
<result column="up" jdbcType="DECIMAL" property="up"/>
<result column="currency" jdbcType="VARCHAR" property="currency"/>
<result column="rate" jdbcType="DECIMAL" property="rate"/>
<result column="amt" jdbcType="DECIMAL" property="amt"/>
<result column="cust_group" jdbcType="VARCHAR" property="custGroup"/>
<result column="cust_group2" jdbcType="VARCHAR" property="custGroup2"/>
<result column="cust_rt1" jdbcType="VARCHAR" property="custRt1"/>
<result column="cust_io" jdbcType="VARCHAR" property="custIo"/>
<result column="cust_newpic" jdbcType="VARCHAR" property="custNewpic"/>
<result column="cust_group1" jdbcType="VARCHAR" property="custGroup1"/>
<result column="cust_rt2" jdbcType="VARCHAR" property="custRt2"/>
<result column="cust_rout" jdbcType="VARCHAR" property="custRout"/>
<result column="cust_addr" jdbcType="VARCHAR" property="custAddr"/>
<result column="cust_g0" jdbcType="VARCHAR" property="custG0"/>
<result column="cust_g20" jdbcType="VARCHAR" property="custG20"/>
<result column="cust_g30" jdbcType="VARCHAR" property="custG30"/>
<result column="cust_g201" jdbcType="VARCHAR" property="custG201"/>
<result column="cust_save" jdbcType="VARCHAR" property="custSave"/>
<result column="cust_stype" jdbcType="VARCHAR" property="custStype"/>
<result column="cust_g1" jdbcType="VARCHAR" property="custG1"/>
<result column="cust_yj" jdbcType="VARCHAR" property="custYj"/>
<result column="cust_yj2" jdbcType="VARCHAR" property="custYj2"/>
<result column="cust_yj3" jdbcType="VARCHAR" property="custYj3"/>
<result column="cust_gc" jdbcType="VARCHAR" property="custGc"/>
<result column="sypn" jdbcType="VARCHAR" property="sypn"/>
</resultMap>
<resultMap id="Jnsp7xtmVoResultMap" type="org.rcisoft.bus.jnsp7xtm.vo.Jnsp7xtmVo">
<result column="zd" property="zd"/>
<result column="nqy" property="nqy"/>
<result column="ddh" property="ddh"/>
<result column="khdm" property="khdm"/>
<result column="khm" property="khm"/>
<result column="khqf" property="khqf"/>
<result column="mksqf" property="mksqf"/>
<result column="jlpm" property="jlpm"/>
<result column="xslj" property="xslj"/>
<result column="pn" property="pn"/>
<result column="fzdm" property="fzdm"/>
<result column="jypn" property="jypn"/>
<result column="bz" property="bz"/>
<result column="xsjg" property="xsjg"/>
<result column="fnq" property="fnq"/>
<result column="szzt" property="szzt"/>
<result column="zzc" property="zzc"/>
<result column="zzcg" property="zzcg"/>
<result column="rmb" property="rmb"/>
<result column="chzsa" property="chzsa"/>
<result column="chzsb" property="chzsb"/>
<result column="ddjsr" property="ddjsr"/>
<result column="ddzdnq" property="ddzdnq"/>
<result column="yydd" property="yydd"/>
<result column="L24" property="ltw"/>
<result column="pn" jdbcType="VARCHAR" property="pn"/>
<result column="sypn" jdbcType="VARCHAR" property="sypn"/>
<result column="cust_code" jdbcType="VARCHAR" property="custCode"/>
<result column="cust_name" jdbcType="VARCHAR" property="custName"/>
<result column="cust_group" jdbcType="VARCHAR" property="custGroup"/>
<result column="cust_group2" jdbcType="VARCHAR" property="custGroup2"/>
<result column="cust_rt1" jdbcType="VARCHAR" property="custRt1"/>
<result column="cust_io" jdbcType="VARCHAR" property="custIo"/>
<result column="cust_newpic" jdbcType="VARCHAR" property="custNewpic"/>
<result column="cust_group1" jdbcType="VARCHAR" property="custGroup1"/>
<result column="cust_rt2" jdbcType="VARCHAR" property="custRt2"/>
<result column="cust_rout" jdbcType="VARCHAR" property="custRout"/>
<result column="cust_addr" jdbcType="VARCHAR" property="custAddr"/>
<result column="cust_g0" jdbcType="VARCHAR" property="custG0"/>
<result column="cust_g20" jdbcType="VARCHAR" property="custG20"/>
<result column="cust_g30" jdbcType="VARCHAR" property="custG30"/>
<result column="cust_g201" jdbcType="VARCHAR" property="custG201"/>
<result column="cust_save" jdbcType="VARCHAR" property="custSave"/>
<result column="cust_stype" jdbcType="VARCHAR" property="custStype"/>
<result column="cust_g1" jdbcType="VARCHAR" property="custG1"/>
<result column="cust_yj" jdbcType="VARCHAR" property="custYj"/>
<result column="cust_yj2" jdbcType="VARCHAR" property="custYj2"/>
<result column="cust_yj3" jdbcType="VARCHAR" property="custYj3"/>
<result column="cust_gc" jdbcType="VARCHAR" property="custGc"/>
</resultMap>
<insert id="batchAddJnsp7xtmDqsj" parameterType="java.util.List">
INSERT into jnsp7xtm_dqsj(term,half,quarter,month,cc,cn,io,route,pc,factory,size,pn,po,fc,qty,up,currency,rate,amt,cust_group,cust_group2,cust_rt1,cust_io,cust_newpic,cust_group1,cust_rt2,cust_rout,cust_addr,cust_g0,cust_g20,cust_g30,cust_g201,cust_save,cust_stype,cust_g1,cust_yj,cust_yj2,cust_yj3,cust_gc,sypn) values
<foreach collection="list" item="item" separator=",">
(#{item.term}, #{item.half},#{item.quarter},#{item.month},#{item.cc},#{item.cn},#{item.io},#{item.route},#{item.pc},#{item.factory},#{item.size},#{item.pn},#{item.po},#{item.fc},#{item.qty},#{item.up},#{item.currency},#{item.rate},#{item.amt},#{item.custGroup},#{item.custGroup2},#{item.custRt1},#{item.custIo},#{item.custNewpic},#{item.custGroup1},#{item.custRt2},#{item.custRout},#{item.custAddr},#{item.custG0},#{item.custG20},#{item.custG30},#{item.custG201},#{item.custSave},#{item.custStype},#{item.custG1},#{item.custYj},#{item.custYj2},#{item.custYj3},#{item.custGc},#{item.sypn})
</foreach>
</insert>
<select id="queryjnP7sj" resultMap="BaseResultMap">
select * from jnsp7xtm_dqsj where 1=1
<if test="entity.term !=null and entity.term != '' ">
and term = #{entity.term}
</if>
<if test="entity.half !=null and entity.half != '' ">
and half like concat('%',#{entity.half},'%')
</if>
<if test="entity.quarter !=null and entity.quarter != '' ">
and quarter like concat('%',#{entity.quarter},'%')
</if>
<if test="entity.month !=null and entity.month != '' ">
and `month` like concat('%',#{entity.month},'%')
</if>
<if test="entity.sypn !=null and entity.sypn != '' ">
and sypn like concat('%',#{entity.sypn},'%')
</if>
<if test="entity.cc !=null and entity.cc != '' ">
and cc like concat('%',#{entity.cc},'%')
</if>
<if test="entity.cn !=null and entity.cn != '' ">
and cn like concat('%',#{entity.cn},'%')
</if>
<if test="entity.io !=null and entity.io != '' ">
and io like concat('%',#{entity.io},'%')
</if>
<if test="entity.route !=null and entity.route != '' ">
and route like concat('%',#{entity.route},'%')
</if>
<if test="entity.pc !=null and entity.pc != '' ">
and pc like concat('%',#{entity.pc},'%')
</if>
<if test="entity.factory !=null and entity.factory != '' ">
and factory like concat('%',#{entity.factory},'%')
</if>
<if test="entity.size !=null and entity.size != '' ">
and size like concat('%',#{entity.size},'%')
</if>
<if test="entity.pn !=null and entity.pn != '' ">
and pn like concat('%',#{entity.pn},'%')
</if>
<if test="entity.po !=null and entity.po != '' ">
and po = #{entity.po}
</if>
<if test="entity.fc !=null and entity.fc != '' ">
and fc = #{entity.fc}
</if>
<if test="entity.qty !=null and entity.qty != '' ">
and qty = #{entity.qty}
</if>
<if test="entity.up !=null and entity.up != '' ">
and up = #{entity.up}
</if>
<if test="entity.currency !=null and entity.currency != '' ">
and currency like concat('%',#{entity.currency},'%')
</if>
<if test="entity.rate !=null and entity.rate != '' ">
and rate = #{entity.rate}
</if>
<if test="entity.amt !=null and entity.amt != '' ">
and amt = #{entity.amt}
</if>
<if test="entity.custGroup !=null and entity.custGroup != '' ">
and cust_group like concat('%',#{entity.custGroup},'%')
</if>
<if test="entity.custGroup2 !=null and entity.custGroup2 != '' ">
and cust_group2 like concat('%',#{entity.custGroup2},'%')
</if>
<if test="entity.custRt1 !=null and entity.custRt1 != '' ">
and cust_rt1 like concat('%',#{entity.custRt1},'%')
</if>
<if test="entity.custIo !=null and entity.custIo != '' ">
and cust_io like concat('%',#{entity.custIo},'%')
</if>
<if test="entity.custNewpic !=null and entity.custNewpic != '' ">
and cust_newpic like concat('%',#{entity.custNewpic},'%')
</if>
<if test="entity.custGroup1 !=null and entity.custGroup1 != '' ">
and cust_group1 like concat('%',#{entity.custGroup1},'%')
</if>
<if test="entity.custRt2 !=null and entity.custRt2 != '' ">
and cust_rt2 like concat('%',#{entity.custRt2},'%')
</if>
<if test="entity.custRout !=null and entity.custRout != '' ">
and cust_rout like concat('%',#{entity.custRout},'%')
</if>
<if test="entity.custAddr !=null and entity.custAddr != '' ">
and cust_addr like concat('%',#{entity.custAddr},'%')
</if>
<if test="entity.custG0 !=null and entity.custG0 != '' ">
and cust_g0 like concat('%',#{entity.custG0},'%')
</if>
<if test="entity.custG20 !=null and entity.custG20 != '' ">
and cust_g20 like concat('%',#{entity.custG20},'%')
</if>
<if test="entity.custG30 !=null and entity.custG30 != '' ">
and cust_g30 like concat('%',#{entity.custG30},'%')
</if>
<if test="entity.custG201 !=null and entity.custG201 != '' ">
and cust_g201 like concat('%',#{entity.custG201},'%')
</if>
<if test="entity.custSave !=null and entity.custSave != '' ">
and cust_save like concat('%',#{entity.custSave},'%')
</if>
<if test="entity.custStype !=null and entity.custStype != '' ">
and cust_stype like concat('%',#{entity.custStype},'%')
</if>
<if test="entity.custG1 !=null and entity.custG1 != '' ">
and cust_g1 like concat('%',#{entity.custG1},'%')
</if>
<if test="entity.custYj !=null and entity.custYj != '' ">
and cust_yj like concat('%',#{entity.custYj},'%')
</if>
<if test="entity.custYj2 !=null and entity.custYj2 != '' ">
and cust_yj2 like concat('%',#{entity.custYj2},'%')
</if>
<if test="entity.custYj3 !=null and entity.custYj3 != '' ">
and cust_yj3 like concat('%',#{entity.custYj3},'%')
</if>
<if test="entity.custGc !=null and entity.custGc != '' ">
and cust_gc like concat('%',#{entity.custGc},'%')
</if>
ORDER BY business_id DESC
</select>
<select id="queryjnP7Paged" resultType="org.rcisoft.bus.jnP7sj.entity.jnP7sj">
select * from jnsp7xtm_dqsj where 1=1
<if test="entity.term !=null and entity.term != '' ">
and term like concat('%',#{entity.term},'%')
</if>
<if test="entity.half !=null and entity.half != '' ">
and half like concat('%',#{entity.half},'%')
</if>
<if test="entity.quarter !=null and entity.quarter != '' ">
and quarter like concat('%',#{entity.quarter},'%')
</if>
<if test="entity.month !=null and entity.month != '' ">
and month = #{entity.month}
</if>
<if test="entity.cc !=null and entity.cc != '' ">
and cc like concat('%',#{entity.cc},'%')
</if>
<if test="entity.sypn !=null and entity.sypn != '' ">
and sypn like concat('%',#{entity.sypn},'%')
</if>
<if test="entity.cn !=null and entity.cn != '' ">
and cn like concat('%',#{entity.cn},'%')
</if>
<if test="entity.io !=null and entity.io != '' ">
and io like concat('%',#{entity.io},'%')
</if>
<if test="entity.route !=null and entity.route != '' ">
and route like concat('%',#{entity.route},'%')
</if>
<if test="entity.pc !=null and entity.pc != '' ">
and pc like concat('%',#{entity.pc},'%')
</if>
<if test="entity.factory !=null and entity.factory != '' ">
and factory like concat('%',#{entity.factory},'%')
</if>
<if test="entity.size !=null and entity.size != '' ">
and size like concat('%',#{entity.size},'%')
</if>
<if test="entity.pn !=null and entity.pn != '' ">
and pn like concat('%',#{entity.pn},'%')
</if>
<if test="entity.po !=null and entity.po != '' ">
and po = #{entity.po}
</if>
<if test="entity.fc !=null and entity.fc != '' ">
and fc = #{entity.fc}
</if>
<if test="entity.qty !=null and entity.qty != '' ">
and qty = #{entity.qty}
</if>
<if test="entity.up !=null and entity.up != '' ">
and up = #{entity.up}
</if>
<if test="entity.currency !=null and entity.currency != '' ">
and currency like concat('%',#{entity.currency},'%')
</if>
<if test="entity.rate !=null and entity.rate != '' ">
and rate = #{entity.rate}
</if>
<if test="entity.amt !=null and entity.amt != '' ">
and amt = #{entity.amt}
</if>
<if test="entity.custGroup !=null and entity.custGroup != '' ">
and cust_group like concat('%',#{entity.custGroup},'%')
</if>
<if test="entity.custGroup2 !=null and entity.custGroup2 != '' ">
and cust_group2 like concat('%',#{entity.custGroup2},'%')
</if>
<if test="entity.custRt1 !=null and entity.custRt1 != '' ">
and cust_rt1 like concat('%',#{entity.custRt1},'%')
</if>
<if test="entity.custIo !=null and entity.custIo != '' ">
and cust_io like concat('%',#{entity.custIo},'%')
</if>
<if test="entity.custNewpic !=null and entity.custNewpic != '' ">
and cust_newpic like concat('%',#{entity.custNewpic},'%')
</if>
<if test="entity.custGroup1 !=null and entity.custGroup1 != '' ">
and cust_group1 like concat('%',#{entity.custGroup1},'%')
</if>
<if test="entity.custRt2 !=null and entity.custRt2 != '' ">
and cust_rt2 like concat('%',#{entity.custRt2},'%')
</if>
<if test="entity.custRout !=null and entity.custRout != '' ">
and cust_rout like concat('%',#{entity.custRout},'%')
</if>
<if test="entity.custAddr !=null and entity.custAddr != '' ">
and cust_addr like concat('%',#{entity.custAddr},'%')
</if>
<if test="entity.custG0 !=null and entity.custG0 != '' ">
and cust_g0 like concat('%',#{entity.custG0},'%')
</if>
<if test="entity.custG20 !=null and entity.custG20 != '' ">
and cust_g20 like concat('%',#{entity.custG20},'%')
</if>
<if test="entity.custG30 !=null and entity.custG30 != '' ">
and cust_g30 like concat('%',#{entity.custG30},'%')
</if>
<if test="entity.custG201 !=null and entity.custG201 != '' ">
and cust_g201 like concat('%',#{entity.custG201},'%')
</if>
<if test="entity.custSave !=null and entity.custSave != '' ">
and cust_save like concat('%',#{entity.custSave},'%')
</if>
<if test="entity.custStype !=null and entity.custStype != '' ">
and cust_stype like concat('%',#{entity.custStype},'%')
</if>
<if test="entity.custG1 !=null and entity.custG1 != '' ">
and cust_g1 like concat('%',#{entity.custG1},'%')
</if>
<if test="entity.custYj !=null and entity.custYj != '' ">
and cust_yj like concat('%',#{entity.custYj},'%')
</if>
<if test="entity.custYj2 !=null and entity.custYj2 != '' ">
and cust_yj2 like concat('%',#{entity.custYj2},'%')
</if>
<if test="entity.custYj3 !=null and entity.custYj3 != '' ">
and cust_yj3 like concat('%',#{entity.custYj3},'%')
</if>
<if test="entity.custGc !=null and entity.custGc != '' ">
and cust_gc like concat('%',#{entity.custGc},'%')
</if>
ORDER BY business_id DESC
</select>
<select id="getMonthList" resultType="java.lang.String"></select>
<select id="truncateJnsp7xtmDqsj"></select>
<select id="streamQuery"></select>
<select id="batchAddJnp7sj"></select>
</mapper>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.rcisoft.bus.jnP7sj.dao.jnP7sjRepository">
<resultMap id="BaseResultMap" type="org.rcisoft.bus.jnP7sj.entity.jnP7sj">
<id column="business_id" jdbcType="BIGINT" property="businessId"/>
<result column="term" jdbcType="VARCHAR" property="term"/>
<result column="half" jdbcType="VARCHAR" property="half"/>
<result column="quarter" jdbcType="VARCHAR" property="quarter"/>
<result column="month" jdbcType="VARCHAR" property="month"/>
<result column="cc" jdbcType="VARCHAR" property="cc"/>
<result column="cn" jdbcType="VARCHAR" property="cn"/>
<result column="io" jdbcType="VARCHAR" property="io"/>
<result column="route" jdbcType="VARCHAR" property="route"/>
<result column="pc" jdbcType="VARCHAR" property="pc"/>
<result column="factory" jdbcType="VARCHAR" property="factory"/>
<result column="size" jdbcType="VARCHAR" property="size"/>
<result column="pn" jdbcType="VARCHAR" property="pn"/>
<result column="po" jdbcType="DECIMAL" property="po"/>
<result column="fc" jdbcType="DECIMAL" property="fc"/>
<result column="qty" jdbcType="DECIMAL" property="qty"/>
</resultMap>
<select id="queryjnP7sj" resultMap="BaseResultMap">
select * from jnsp7xtm_dqsj
where 1=1
<if test="entity.term !=null and entity.term != '' ">
and term = #{entity.term}
</if>
<if test="entity.half !=null and entity.half != '' ">
and half like concat('%',#{entity.half},'%')
</if>
<if test="entity.quarter !=null and entity.quarter != '' ">
and quarter like concat('%',#{entity.quarter},'%')
</if>
<if test="entity.month !=null and entity.month != '' ">
and `month` like concat('%',#{entity.month},'%')
</if>
<if test="entity.sypn !=null and entity.sypn != '' ">
and sypn like concat('%',#{entity.sypn},'%')
</if>
<if test="entity.cc !=null and entity.cc != '' ">
and cc like concat('%',#{entity.cc},'%')
</if>
<if test="entity.cn !=null and entity.cn != '' ">
and cn like concat('%',#{entity.cn},'%')
</if>
<if test="entity.io !=null and entity.io != '' ">
and io like concat('%',#{entity.io},'%')
</if>
<if test="entity.route !=null and entity.route != '' ">
and route like concat('%',#{entity.route},'%')
</if>
<if test="entity.pc !=null and entity.pc != '' ">
and pc like concat('%',#{entity.pc},'%')
</if>
<if test="entity.factory !=null and entity.factory != '' ">
and factory like concat('%',#{entity.factory},'%')
</if>
<if test="entity.size !=null and entity.size != '' ">
and size like concat('%',#{entity.size},'%')
</if>
<if test="entity.pn !=null and entity.pn != '' ">
and pn like concat('%',#{entity.pn},'%')
</if>
<if test="entity.po !=null and entity.po != '' ">
and po = #{entity.po}
</if>
<if test="entity.fc !=null and entity.fc != '' ">
and fc = #{entity.fc}
</if>
<if test="entity.qty !=null and entity.qty != '' ">
and qty = #{entity.qty}
</if>
ORDER BY business_id DESC
</select>
<select id="queryjnP7sjPaged" resultMap="BaseResultMap">
select * from jnsp7xtm_dqsj
where 1=1
<if test="entity.term !=null and entity.term != '' ">
and term like concat('%',#{entity.term},'%')
</if>
<if test="entity.half !=null and entity.half != '' ">
and half like concat('%',#{entity.half},'%')
</if>
<if test="entity.quarter !=null and entity.quarter != '' ">
and quarter like concat('%',#{entity.quarter},'%')
</if>
<if test="entity.month !=null and entity.month != '' ">
and month = #{entity.month}
</if>
<if test="entity.cc !=null and entity.cc != '' ">
and cc like concat('%',#{entity.cc},'%')
</if>
<if test="entity.sypn !=null and entity.sypn != '' ">
and sypn like concat('%',#{entity.sypn},'%')
</if>
<if test="entity.cn !=null and entity.cn != '' ">
and cn like concat('%',#{entity.cn},'%')
</if>
<if test="entity.io !=null and entity.io != '' ">
and io like concat('%',#{entity.io},'%')
</if>
<if test="entity.route !=null and entity.route != '' ">
and route like concat('%',#{entity.route},'%')
</if>
<if test="entity.pc !=null and entity.pc != '' ">
and pc like concat('%',#{entity.pc},'%')
</if>
<if test="entity.factory !=null and entity.factory != '' ">
and factory like concat('%',#{entity.factory},'%')
</if>
<if test="entity.size !=null and entity.size != '' ">
and size like concat('%',#{entity.size},'%')
</if>
<if test="entity.pn !=null and entity.pn != '' ">
and pn like concat('%',#{entity.pn},'%')
</if>
<if test="entity.po !=null and entity.po != '' ">
and po = #{entity.po}
</if>
<if test="entity.fc !=null and entity.fc != '' ">
and fc = #{entity.fc}
</if>
<if test="entity.qty !=null and entity.qty != '' ">
and qty = #{entity.qty}
</if>
ORDER BY business_id DESC
</select>
<select id="getMonthList" resultMap="BaseResultMap">
SELECT
DISTINCT month
FROM
jnsp7xtm_dqsj
</select>
</mapper>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.rcisoft.bus.taskInfo.dao.TaskInfoRepository">
<resultMap id="BaseResultMap" type="org.rcisoft.bus.taskInfo.entity.taskInfo">
<id column="business_id" jdbcType="BIGINT" property="businessId"/>
<result column="flag" jdbcType="NCHAR" property="flag"/>
<result column="create_by" jdbcType="VARCHAR" property="createBy"/>
<result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
<result column="remarks" jdbcType="VARCHAR" property="remarks"/>
<result column="tack_id" jdbcType="VARCHAR" property="tackId"/>
<result column="status" jdbcType="VARCHAR" property="status"/>
<result column="type" jdbcType="VARCHAR" property="type"/>
<result column="del_flag" jdbcType="NCHAR" property="delFlag"/>
</resultMap>
<select id="queryTaskInfos" resultMap="BaseResultMap">
select *from task_info where 1=1
and del_flag = '0'
<if test="entity.flag !=null and entity.flag!= ' ' ">
and flag=#{entity.flag}
</if>
<if test="entity.taskId !=null and entity.tackId != '' ">
and tack_id=#{entity.tackId}
</if>
<if test="entity.status !=null and entity.status !=''">
and status like concat('%',#{entity.status},'%')
</if>
<if test="entity.type !=null and entity.type !=''">
and type like concat('%',#{entity.type},'%')
</if>
ORDER BY business_id DESC
</select>
<select id="queryTaskInfosPaged" resultMap="BaseResultMap">
select *from task_info where 1=1
and del_flag = '0'
<if test="entity.flag !=null and entity.flag!= ' ' ">
and flag=#{entity.flag}
</if>
<if test="entity.taskId !=null and entity.tackId != '' ">
and tack_id=#{entity.tackId}
</if>
<if test="entity.status !=null and entity.status !=''">
and status like concat('%',#{entity.status},'%')
</if>
<if test="entity.type !=null and entity.type !=''">
and type like concat('%',#{entity.type},'%')
</if>
ORDER BY business_id DESC
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment