|
@@ -493,8 +493,16 @@ public interface YiZhuLuRuDao {
|
|
|
"set confirm_time = #{confirmDate}, " +
|
|
|
" signer = #{userCode}, " +
|
|
|
" status_time = #{confirmDate}, " +
|
|
|
- " status_flag = '2' " +
|
|
|
- " where act_order_no = #{decimal} ")
|
|
|
+ " status_flag = '2'," +
|
|
|
+ " supply_code = case " +
|
|
|
+ " when parent_no is not null then (select isnull(nullif(supply_child, ''), '044') " +
|
|
|
+ " from yz_supply_type c " +
|
|
|
+ " where c.supply_code = (select supply_code " +
|
|
|
+ " from yz_act_order b " +
|
|
|
+ " where b.act_order_no = yz_act_order.parent_no)) " +
|
|
|
+ " else " +
|
|
|
+ " yz_act_order.supply_code end " +
|
|
|
+ " where act_order_no = #{decimal}")
|
|
|
void confirmOrders(BigDecimal decimal, String userCode, Date confirmDate);
|
|
|
|
|
|
|