修改app领料明细查询
This commit is contained in:
parent
152226b4e9
commit
63065db713
|
|
@ -279,12 +279,12 @@
|
||||||
<insert id="batchInsert" keyColumn="task_id" keyProperty="taskId" parameterType="map" useGeneratedKeys="true">
|
<insert id="batchInsert" keyColumn="task_id" keyProperty="taskId" parameterType="map" useGeneratedKeys="true">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
insert into tm_task
|
insert into tm_task
|
||||||
(task_type, task_status, code, create_by, create_time, update_by, update_time, remark,
|
(task_type, task_status, code, create_by, create_time, update_by, update_time, remark,
|
||||||
company_id)
|
company_id)
|
||||||
values
|
values
|
||||||
<foreach collection="list" item="item" separator=",">
|
<foreach collection="list" item="item" separator=",">
|
||||||
(#{item.taskType,jdbcType=INTEGER}, #{item.taskStatus,jdbcType=INTEGER}, #{item.code,jdbcType=VARCHAR},
|
(#{item.taskType,jdbcType=INTEGER}, #{item.taskStatus,jdbcType=INTEGER}, #{item.code,jdbcType=VARCHAR},
|
||||||
#{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR},
|
#{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR},
|
||||||
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.remark,jdbcType=VARCHAR}, #{item.companyId,jdbcType=INTEGER}
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.remark,jdbcType=VARCHAR}, #{item.companyId,jdbcType=INTEGER}
|
||||||
)
|
)
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|
@ -322,7 +322,7 @@
|
||||||
#{remark,jdbcType=VARCHAR},
|
#{remark,jdbcType=VARCHAR},
|
||||||
#{companyId,jdbcType=INTEGER},
|
#{companyId,jdbcType=INTEGER},
|
||||||
</trim>
|
</trim>
|
||||||
on duplicate key update
|
on duplicate key update
|
||||||
<trim suffixOverrides=",">
|
<trim suffixOverrides=",">
|
||||||
<if test="taskId != null">
|
<if test="taskId != null">
|
||||||
task_id = #{taskId,jdbcType=BIGINT},
|
task_id = #{taskId,jdbcType=BIGINT},
|
||||||
|
|
@ -407,7 +407,7 @@
|
||||||
#{companyId,jdbcType=INTEGER},
|
#{companyId,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
on duplicate key update
|
on duplicate key update
|
||||||
<trim suffixOverrides=",">
|
<trim suffixOverrides=",">
|
||||||
<if test="taskId != null">
|
<if test="taskId != null">
|
||||||
task_id = #{taskId,jdbcType=BIGINT},
|
task_id = #{taskId,jdbcType=BIGINT},
|
||||||
|
|
@ -505,7 +505,7 @@
|
||||||
FROM
|
FROM
|
||||||
lease_apply_info lai
|
lease_apply_info lai
|
||||||
WHERE
|
WHERE
|
||||||
lai.task_id = #{record.taskId} AND lai.`code` = #{record.code} AND lai.status = '1'
|
lai.task_id = #{record.taskId} AND lai.`code` = #{record.code}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getLeaseApplyDetails" resultType="com.bonus.sgzb.base.api.domain.LeaseApplyDetails">
|
<select id="getLeaseApplyDetails" resultType="com.bonus.sgzb.base.api.domain.LeaseApplyDetails">
|
||||||
|
|
@ -648,4 +648,4 @@
|
||||||
WHERE task_id = #{taskId} AND `status` ='1' and company_id = #{id}
|
WHERE task_id = #{taskId} AND `status` ='1' and company_id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue