|
|
@@ -52,29 +52,30 @@
|
|
52
|
52
|
|
|
53
|
53
|
<select id="selectLhList" resultType="com.unis.purchaseAndSalesSupervision.modular.yjbj.entity.StorageRotationWarning" parameterType="map">
|
|
54
|
54
|
select
|
|
55
|
|
- id, ch, hwh, lspz, lsxz, kcsl, scnf, zhycrq, cbnx, cccxrq, bjrq, bjlx, clzt, clr,
|
|
56
|
|
- clsj, org_id, scsj, updatetime, remark, clyj
|
|
57
|
|
- from storage_rotation_warning
|
|
|
55
|
+ srw.id, srw.ch, srw.hwh, srw.lspz, srw.lsxz,srw.kcsl, srw.scnf, srw.zhycrq, srw.cbnx, srw.cccxrq, srw.bjrq, srw.bjlx, srw.clzt, srw.clr,
|
|
|
56
|
+ srw.clsj, srw.org_id, srw.scsj, srw.updatetime, srw.remark, srw.clyj,bs.storehouse_name storehouseName
|
|
|
57
|
+ from depot_qh.storage_rotation_warning srw
|
|
|
58
|
+ left join depot_qh.basic_storehouse bs on bs.storehouse_id=srw.ch
|
|
58
|
59
|
where 1=1
|
|
59
|
60
|
<if test="record.bjlx != null">
|
|
60
|
|
- and bjlx = #{record.bjlx, jdbcType=VARCHAR}
|
|
|
61
|
+ and srw.bjlx = #{record.bjlx, jdbcType=VARCHAR}
|
|
61
|
62
|
</if>
|
|
62
|
63
|
<if test="record.orgId != null">
|
|
63
|
|
- and org_id = #{record.orgId, jdbcType=INTEGER}
|
|
|
64
|
+ and srw.org_id = #{record.orgId, jdbcType=INTEGER}
|
|
64
|
65
|
</if>
|
|
65
|
66
|
<if test="record.lspz != null">
|
|
66
|
|
- and lspz = #{record.lspz, jdbcType=INTEGER}
|
|
|
67
|
+ and srw.lspz = #{record.lspz, jdbcType=INTEGER}
|
|
67
|
68
|
</if>
|
|
68
|
69
|
<if test="record.ch != null">
|
|
69
|
|
- and ch = #{record.ch, jdbcType=INTEGER}
|
|
|
70
|
+ and srw.ch = #{record.ch, jdbcType=INTEGER}
|
|
70
|
71
|
</if>
|
|
71
|
72
|
<if test="record.startTime != null">
|
|
72
|
|
- and STR_TO_DATE(zhycrq, '%Y-%m-%d %H:%i:%s') >= #{record.startTime, jdbcType=VARCHAR}
|
|
|
73
|
+ and srw.STR_TO_DATE(zhycrq, '%Y-%m-%d %H:%i:%s') >= #{record.startTime, jdbcType=VARCHAR}
|
|
73
|
74
|
</if>
|
|
74
|
75
|
<if test="record.endTime != null">
|
|
75
|
|
- and STR_TO_DATE(zhycrq, '%Y-%m-%d %H:%i:%s') <= #{record.endTime, jdbcType=VARCHAR}
|
|
|
76
|
+ and srw.STR_TO_DATE(zhycrq, '%Y-%m-%d %H:%i:%s') <= #{record.endTime, jdbcType=VARCHAR}
|
|
76
|
77
|
</if>
|
|
77
|
|
- order by scsj desc
|
|
|
78
|
+ order by srw.scsj desc
|
|
78
|
79
|
</select>
|
|
79
|
80
|
|
|
80
|
81
|
<select id="queryLhById" parameterType="java.lang.String" resultType="com.unis.purchaseAndSalesSupervision.modular.yjbj.entity.StorageRotationWarning">
|