|
@@ -151,7 +151,7 @@
|
|
pm.delete_flag = '0'
|
|
pm.delete_flag = '0'
|
|
and pm.status !='待结算'
|
|
and pm.status !='待结算'
|
|
and pm.settlement_date> #{beforeDay}
|
|
and pm.settlement_date> #{beforeDay}
|
|
- group BY pm.contract_no,pm.customer_name,pm.goods_name,DATE_FORMAT(pm.settlement_date,"%Y%m%d")
|
|
|
|
|
|
+ group BY pm.contract_no,pm.customer_name,pm.goods_name
|
|
</select>
|
|
</select>
|
|
<!-- 采购入库单查询 -->
|
|
<!-- 采购入库单查询 -->
|
|
<select id="getPurchaseListByCondition" parameterType="Map"
|
|
<select id="getPurchaseListByCondition" parameterType="Map"
|
|
@@ -174,7 +174,7 @@
|
|
and wio.in_out_type ='采购入库'
|
|
and wio.in_out_type ='采购入库'
|
|
and wbi.warehouse_type='1'
|
|
and wbi.warehouse_type='1'
|
|
and wio.in_out_date> #{beforeDay}
|
|
and wio.in_out_date> #{beforeDay}
|
|
- group BY wio.warehouse_name,wio.contract_no,DATE_FORMAT(wio.in_out_date,"%Y%m%d")
|
|
|
|
|
|
+ group BY wio.warehouse_name,wio.contract_no
|
|
</select>
|
|
</select>
|
|
<!-- 根据条件查询货源总数 -->
|
|
<!-- 根据条件查询货源总数 -->
|
|
<select id="getGoodSourceCountByCondition" parameterType="Map" resultType="java.lang.Integer">
|
|
<select id="getGoodSourceCountByCondition" parameterType="Map" resultType="java.lang.Integer">
|
|
@@ -297,7 +297,7 @@
|
|
and wio.in_out_type ='移库入库'
|
|
and wio.in_out_type ='移库入库'
|
|
and wbi.warehouse_type='1'
|
|
and wbi.warehouse_type='1'
|
|
and wio.in_out_date> #{beforeDay}
|
|
and wio.in_out_date> #{beforeDay}
|
|
- group BY wio.in_out_task_no,DATE_FORMAT(wio.in_out_date,"%Y%m%d")
|
|
|
|
|
|
+ group BY wio.in_out_task_no
|
|
</select>
|
|
</select>
|
|
<!-- 退库入库单查询 -->
|
|
<!-- 退库入库单查询 -->
|
|
<select id="getReturnListByCondition" parameterType="Map"
|
|
<select id="getReturnListByCondition" parameterType="Map"
|
|
@@ -322,6 +322,6 @@
|
|
and wio.in_out_type ='退库'
|
|
and wio.in_out_type ='退库'
|
|
and wbi.warehouse_type='1'
|
|
and wbi.warehouse_type='1'
|
|
and wio.in_out_date> #{beforeDay}
|
|
and wio.in_out_date> #{beforeDay}
|
|
- group BY wio.in_out_task_no,DATE_FORMAT(wio.in_out_date,"%Y%m%d")
|
|
|
|
|
|
+ group BY wio.in_out_task_no
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|