|
@@ -1023,36 +1023,6 @@ public interface YiZhuLuRuDao {
|
|
|
@Param("dept") String dept);
|
|
|
|
|
|
|
|
|
- @Select("select rtrim(code) order_code, " +
|
|
|
- " rtrim(a.serial) serial, " +
|
|
|
- " rtrim(name) order_name," +
|
|
|
- " case infusion_flag " +
|
|
|
- " when '1' then 'i' " +
|
|
|
- " else " +
|
|
|
- " (case " +
|
|
|
- " when rtrim(code) >= '30000' and rtrim(code) < '50000' then 'z' " +
|
|
|
- " else 'd' end) end as drug_flag, " +
|
|
|
- " mini_unit, " +
|
|
|
- " isnull(weight,1) drug_weight, " +
|
|
|
- " weigh_unit drug_weight_unit, " +
|
|
|
- " isnull(volum,1) drug_volume, " +
|
|
|
- " vol_unit drug_vol_unit," +
|
|
|
- " isnull(pack_size,1) pack_size, " +
|
|
|
- " pack_unit," +
|
|
|
- " a.pack_retprice, " +
|
|
|
- " national_code," +
|
|
|
- " cast(isnull(NULLIF(kjyw_flag, ''), 0) as int) as kjyw_flag," +
|
|
|
- " cast(isnull(NULLIF(yp_level, ''), 0) as int) as yp_level," +
|
|
|
- " cast(isnull(NULLIF(del_flag, ''), 0) as int) as del_flag, " +
|
|
|
- " stock_amount," +
|
|
|
- " cast(isnull(nullif(visible_flag_zy, ''), 0) as int) as visible_flag_zy " +
|
|
|
- " from yp_zd_dict a with (NOLOCK) " +
|
|
|
- " left join yp_base_yf b on ( code = b.charge_code and a.serial = b.serial) " +
|
|
|
- "where rtrim(code) + rtrim(a.serial) = '${code}' " +
|
|
|
- " and group_no = #{groupNo} ")
|
|
|
- XinZhenYzActOrder getDrugOne(String code, String groupNo);
|
|
|
-
|
|
|
-
|
|
|
@Select("<script>" +
|
|
|
"select b.order_code, " +
|
|
|
" rtrim(c.name) order_name, " +
|
|
@@ -1536,7 +1506,7 @@ public interface YiZhuLuRuDao {
|
|
|
" frequ_code = #{order.frequCode}," +
|
|
|
" group_no = #{order.groupNo} " +
|
|
|
"where act_order_no = ${children} " +
|
|
|
- " and group_no <> '00' and status_flag = '1' ")
|
|
|
+ " and status_flag = '1' ")
|
|
|
void associateOrders(BigDecimal children, XinZhenYzActOrder order);
|
|
|
|
|
|
|