增加批量设置会员当前的预付款接口,完善单据中收预付款的更新逻辑

This commit is contained in:
季圣华
2023-12-18 23:35:55 +08:00
parent 1daf602ecc
commit 0e87202d7c
8 changed files with 100 additions and 39 deletions

View File

@@ -1235,4 +1235,13 @@
</if>
and ifnull(dh.delete_Flag,'0') !='1') tb
</select>
<select id="getBillAllPriceByOrganId" resultType="java.math.BigDecimal">
select ifnull(sum(dh.total_price),0) allPrice from jsh_depot_head dh
where dh.organ_id=#{organId}
and dh.type = '出库'
and dh.sub_type = '零售'
and dh.pay_type = '预付款'
and ifnull(dh.delete_flag,'0') !='1'
</select>
</mapper>