Commit b2dbabeb authored by hubaoshan's avatar hubaoshan

taskinfo

parent 54431915
...@@ -5,30 +5,23 @@ import org.apache.ibatis.annotations.Param; ...@@ -5,30 +5,23 @@ import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.ResultHandler; import org.apache.ibatis.session.ResultHandler;
import org.rcisoft.bus.jnP7sj.entity.jnP7sj; import org.rcisoft.bus.jnP7sj.entity.jnP7sj;
import org.rcisoft.bus.jnsp7xtm.vo.Jnsp7xtmVo; import org.rcisoft.bus.jnsp7xtm.vo.Jnsp7xtmVo;
import org.rcisoft.core.mapper.CyBaseMapper;
import org.rcisoft.core.model.CyPageInfo; import org.rcisoft.core.model.CyPageInfo;
import java.util.List; import java.util.List;
public interface Jnsp7xtmDqsjRepository extends CyBaseMapper<jnP7sj> { public interface Jnsp7xtmDqsjRepository {
List<jnP7sj> queryjnP7sj(@Param("entity") jnP7sj jnP7sj); List<jnP7sj> queryjnP7sj(@Param("entity") jnP7sj jnP7sj);
IPage<jnP7sj> queryjnP7Paged(CyPageInfo cyPageInfo, @Param("entity") jnP7sj jnP7sj); IPage<jnP7sj> queryjnP7Paged(CyPageInfo cyPageInfo, @Param("entity") jnP7sj jnP7sj);
List<String> getMonthList(); List<String> getMonthList();
/**
* 截断表jnsp7xtm_dqsj信息
**/
void truncateJnsp7xtmDqsj(@Param("shema") String shema); void truncateJnsp7xtmDqsj(@Param("shema") String shema);
/**
* 流式查询Jnsp7xtmVo
**/
void streamQuery(@Param("handler") ResultHandler<Jnsp7xtmVo> handler); void streamQuery(@Param("handler") ResultHandler<Jnsp7xtmVo> handler);
/**
* 批量添加 Jnsp7xtmDqsj
**/
void batchAddJnp7sj(@Param("list") List<jnP7sj> list); void batchAddJnp7sj(@Param("list") List<jnP7sj> list);
} }
package org.rcisoft.bus.taskInfo.controller; package org.rcisoft.bus.taskInfo.controller;
public class taskInfoController { 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);
}
} }
...@@ -9,8 +9,8 @@ import org.rcisoft.core.model.CyPageInfo; ...@@ -9,8 +9,8 @@ import org.rcisoft.core.model.CyPageInfo;
import java.util.List; import java.util.List;
public interface TaskInfoRepository extends CyBaseMapper<taskInfo> { public interface TaskInfoRepository extends CyBaseMapper<taskInfo> {
List<taskInfo> queryTaskInfos(@Param("entity") taskInfo taskInfo);
List<taskInfo> queryTaskInfos(@Param("entity") taskInfo taskInfo);
IPage<taskInfo> queryTaskInfosPaged(CyPageInfo cyPageInfo, @Param("entity") taskInfo taskInfo); IPage<taskInfo> queryTaskInfosPaged(CyPageInfo cyPageInfo, @Param("entity") taskInfo taskInfo);
......
...@@ -9,7 +9,7 @@ import org.rcisoft.core.entity.CyIdIncreEntity; ...@@ -9,7 +9,7 @@ import org.rcisoft.core.entity.CyIdIncreEntity;
@TableName("task_info") @TableName("task_info")
public class taskInfo extends CyIdIncreEntity<taskInfo> { public class taskInfo extends CyIdIncreEntity<taskInfo> {
@Excel(name = "??id", orderNum = "0", width = 20) @Excel(name = "??id", orderNum = "0", width = 20)
private String taskId; private String tackId;
@Excel(name = "?? 0:??? 1:???", orderNum = "1", width = 20) @Excel(name = "?? 0:??? 1:???", orderNum = "1", width = 20)
private String status; private String status;
@Excel(name = "??", orderNum = "2", width = 20) @Excel(name = "??", orderNum = "2", width = 20)
......
<?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>
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/> <result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/> <result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
<result column="remarks" jdbcType="VARCHAR" property="remarks"/> <result column="remarks" jdbcType="VARCHAR" property="remarks"/>
<result column="task_id" jdbcType="VARCHAR" property="taskId"/> <result column="tack_id" jdbcType="VARCHAR" property="tackId"/>
<result column="status" jdbcType="VARCHAR" property="status"/> <result column="status" jdbcType="VARCHAR" property="status"/>
<result column="type" jdbcType="VARCHAR" property="type"/> <result column="type" jdbcType="VARCHAR" property="type"/>
<result column="del_flag" jdbcType="NCHAR" property="delFlag"/> <result column="del_flag" jdbcType="NCHAR" property="delFlag"/>
...@@ -17,17 +17,35 @@ ...@@ -17,17 +17,35 @@
<select id="queryTaskInfos" resultMap="BaseResultMap"> <select id="queryTaskInfos" resultMap="BaseResultMap">
select *from task_info where 1=1 select *from task_info where 1=1
and del_flag = '0' and del_flag = '0'
<if test="entity.flag !=null and entity.flag != '' "> <if test="entity.flag !=null and entity.flag!= ' ' ">
and flag = #{entity.flag} and flag=#{entity.flag}
</if> </if>
<if test="entity."></if> <if test="entity.taskId !=null and entity.tackId != '' ">
<if></if> and tack_id=#{entity.tackId}
<if></if> </if>
<if></if> <if test="entity.status !=null and entity.status !=''">
<if></if> and status like concat('%',#{entity.status},'%')
<if></if> </if>
<if test="entity.type !=null and entity.type !=''">
and type like concat('%',#{entity.type},'%')
</if>
ORDER BY business_id DESC
</select> </select>
<select id="queryTaskInfosPaged" resultMap="BaseResultMap"> <select id="queryTaskInfosPaged" resultMap="BaseResultMap">
select *from task_info where 1=1 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>
</mapper> </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