Commit 23880043 by huluobin

搜索

parent 9e571a11
package com.blt.other.module.cost.dto.request;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
/**
......@@ -27,4 +26,20 @@ public class CheckCostListReq {
private String costNo;
@ApiModelProperty("主体码")
private String companyNo;
private Integer costForm;
private Integer isLend;
@ApiModelProperty("费用会计类型 ")
private String accountingSubjectNo;
@ApiModelProperty("费用类型 ")
private String typeNo;
@ApiModelProperty("状态 ")
private Integer costStatus;
@ApiModelProperty("创建人(模糊搜索) ")
private String createUsername;
}
......@@ -462,6 +462,31 @@
</if>
</select>
<sql id="checkCostListSearch">
<if test="req.companyNo!=null and req.companyNo!='' ">
and t1.company_no = #{req.companyNo}
</if>
<if test="req.costForm!=null">
and t1.cost_form = #{req.costForm}
</if>
<if test="req.isLend!=null">
and t1.is_lend = #{req.isLend}
</if>
<if test="req.accountingSubjectNo!=null and req.accountingSubjectNo!='' ">
and t1.accounting_subject_no = #{req.accountingSubjectNo}
</if>
<if test="req.typeNo!=null and req.typeNo!='' ">
and t1.type_no = #{req.typeNo}
</if>
<if test="req.costStatus!=null ">
and t1.cost_status = #{req.costStatus}
</if>
<if test="req.createUsername!=null and req.createUsername!='' ">
and t1.create_username = #{req.createUsername}
</if>
</sql>
<!--待部门审核-->
<select id="departmentCheckCostList" resultType="com.blt.other.module.cost.model.CostDomain">
select t1.*
......@@ -472,6 +497,7 @@
<if test="req.costNo !=null and req.costNo !=''">
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
</if>
<include refid="checkCostListSearch"/>
</select>
<!--待我部门审核 + 我已经部门手动审核 + 我已经部门自动审核-->
......@@ -490,6 +516,7 @@
<if test="req.costNo !=null and req.costNo !=''">
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
</if>
<include refid="checkCostListSearch"/>
</select>
<!--我手动部门审核过的 -->
......@@ -503,8 +530,10 @@
<if test="req.costNo !=null and req.costNo !=''">
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
</if>
<include refid="checkCostListSearch"/>
</select>
<!--我部门自动审核过的 -->
<select id="departmentAutoCheckLllCostList" resultType="com.blt.other.module.cost.model.CostDomain">
select t1.*
......@@ -516,6 +545,7 @@
<if test="req.costNo !=null and req.costNo !=''">
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
</if>
<include refid="checkCostListSearch"/>
</select>
<!--需要我财务审核的-->
......@@ -528,6 +558,7 @@
<if test="req.costNo !=null and req.costNo !=''">
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
</if>
<include refid="checkCostListSearch"/>
</select>
<!--需要我人事审核的-->
......@@ -540,6 +571,7 @@
<if test="req.costNo !=null and req.costNo !=''">
and (t1.bank_card_user like concat('%',#{req.costNo},'%') or t1.cost_no = #{req.costNo})
</if>
<include refid="checkCostListSearch"/>
</select>
<select id="selectByStatus" resultType="com.blt.other.module.cost.model.CostDomain">
......
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