任务列表修改

cert
anthonywj 2 years ago
parent 98f36cc593
commit 05c809dc10

@ -110,5 +110,6 @@ public class TraceTaskDlResponse {
@ApiModelProperty(value = "任务更新时间") @ApiModelProperty(value = "任务更新时间")
private Date updateTime; private Date updateTime;
private String companyName;
} }

@ -9,26 +9,27 @@
<select id="queryTraceTaskList" parameterType="com.glxp.api.req.trace.TraceTaskDetailRequest" <select id="queryTraceTaskList" parameterType="com.glxp.api.req.trace.TraceTaskDetailRequest"
resultMap="TraceTaskDlResult"> resultMap="TraceTaskDlResult">
SELECT * SELECT ttn.*, uc.companyName
FROM trace_task_notice FROM trace_task_notice ttn
left join user_company uc on ttn.companyIdFk = uc.id
<where> <where>
<if test="taskType != '' and taskType != null"> <if test="taskType != '' and taskType != null">
and taskType = #{taskType} and ttn.taskType = #{taskType}
</if> </if>
<if test="status != '' and status != null"> <if test="status != '' and status != null">
and status = #{status} and ttn.status = #{status}
</if> </if>
<if test="cpmctymc != '' and cpmctymc != null"> <if test="cpmctymc != '' and cpmctymc != null">
and cpmctymc LIKE CONCAT('%', #{cpmctymc}, '%') and ttn.cpmctymc LIKE CONCAT('%', #{cpmctymc}, '%')
</if> </if>
<if test="ggxh != '' and ggxh != null"> <if test="ggxh != '' and ggxh != null">
and ggxh LIKE CONCAT('%', #{ggxh}, '%') and ttn.ggxh LIKE CONCAT('%', #{ggxh}, '%')
</if> </if>
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null"> <if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
and ylqxzcrbarmc = #{ylqxzcrbarmc} and ttn.ylqxzcrbarmc = #{ylqxzcrbarmc}
</if> </if>
<if test="batchNo != '' and batchNo != null"> <if test="batchNo != '' and batchNo != null">
and batchNo = #{batchNo} and ttn.batchNo = #{batchNo}
</if> </if>
</where> </where>
</select> </select>

Loading…
Cancel
Save