|
@@ -534,6 +534,24 @@ public interface YiZhuLuRuDao {
|
|
|
" where act_order_no = #{decimal}")
|
|
|
void confirmOrders(BigDecimal decimal, String userCode, Date confirmDate);
|
|
|
|
|
|
+
|
|
|
+ @Update("update yz_act_order " +
|
|
|
+ "set confirm_time = #{confirmDate}, " +
|
|
|
+ " signer = #{userCode}, " +
|
|
|
+ " status_time = #{confirmDate}, " +
|
|
|
+ " 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," +
|
|
|
+ " enter_oper = #{userCode},physician = #{userCode} " +
|
|
|
+ " where act_order_no = #{decimal}")
|
|
|
+ void confirmOrdersSuperiorDoctor(BigDecimal decimal, String userCode, Date confirmDate);
|
|
|
+
|
|
|
@Update("update yz_act_order set frequ_code = 'ONCE' WHERE act_order_no = #{decimal} ")
|
|
|
void modifyTheFrequency(BigDecimal decimal);
|
|
|
|
|
@@ -953,7 +971,8 @@ public interface YiZhuLuRuDao {
|
|
|
" CASE " +
|
|
|
" WHEN isnull(b.open_virtual2, '') = '1' then isnull(b.stock_amount_virtual2, 0) " +
|
|
|
" else isnull(stock_amount, 0) end as stock_amount, " +
|
|
|
- " cast(isnull(nullif(visible_flag_zy, ''), 0) as int) as visible_flag_zy, " +
|
|
|
+ " cast(isnull(nullif(visible_flag_zy, ''), 0) as int) as visible_flag_zy," +
|
|
|
+ " cast(isnull(NULLIF(kss_flag, ''), 0) as int) as kss_flag, " +
|
|
|
" deptRestrictions = (select count(1) from yp_zd_dept where code = yp_zd_dept.charge_code and dept_code = '${dept}') " +
|
|
|
"from yp_zd_dict a " +
|
|
|
" with (NOLOCK) " +
|