|
@@ -85,6 +85,9 @@ public interface YpDictDao extends BaseMapper<YpZdDict> {
|
|
|
@Select(" select * from yp_zd_dict where code = #{code} and serial = #{serial} ")
|
|
|
YpZdDict selectYpDictByCode(@Param("code") String code, @Param("serial") String serial);
|
|
|
|
|
|
+ @Select(" select * from yp_zd_dict where code = #{code} ")
|
|
|
+ List<YpZdDict> selectYpDictByCodeNoSerial(@Param("code") String code);
|
|
|
+
|
|
|
@Update(" update yp_zd_dict set del_flag = #{delFlag} where code = #{code} ")
|
|
|
int updateYpDictDelFlagByCode(@Param("code") String code, @Param("delFlag") String delFlag);
|
|
|
|
|
@@ -245,18 +248,18 @@ public interface YpDictDao extends BaseMapper<YpZdDict> {
|
|
|
|
|
|
@Update({"<script>" +
|
|
|
"update yp_zd_dict set" +
|
|
|
- " yp_zd_dict.name =b.name, py_code =b.py_code, d_code =b.d_code, specification =b.specification2, specification2 =b.specification2, " +
|
|
|
- " class_code =b.class_code, dosage =b.dosage, concentration =b.concentration, weight =b.weight, weigh_unit =b.weigh_unit, " +
|
|
|
- " volum =b.volum, vol_unit =b.vol_unit, mini_unit =b.mini_unit, pack_unit =b.mini_unit, self_flag =b.self_flag, " +
|
|
|
- " separate_flag =b.separate_flag, suprice_flag =b.suprice_flag, drug_flag =b.drug_flag, infusion_flag =b.infusion_flag, " +
|
|
|
- " country_flag =b.country_flag, manu_code =b.manu_code, drug_kind =b.drug_kind, gmp_flag =b.gmp_flag, cold_flag =b.cold_flag, " +
|
|
|
- " chem_remark =b.chem_remark, bill_item_mz =b.bill_item_mz, bill_item_zy =b.bill_item_zy, percent_group_mz =b.percent_group_mz, " +
|
|
|
+ " yp_zd_dict.name =b.name, py_code =b.py_code, d_code =b.d_code, specification =b.specification2, specification2 =b.specification2, location =b.location, " +
|
|
|
+ " class_code =b.class_code, dosage =b.dosage, concentration =b.concentration, weight =b.weight, weigh_unit =b.weigh_unit, fh_name = b.fh_name, " +
|
|
|
+ " volum =b.volum, vol_unit =b.vol_unit, mini_unit =b.mini_unit, pack_unit =b.mini_unit, self_flag =b.self_flag, js_flag = b.js_flag, order_dosage =b.order_dosage, " +
|
|
|
+ " separate_flag =b.separate_flag, suprice_flag =b.suprice_flag, drug_flag =b.drug_flag, infusion_flag =b.infusion_flag, pzwh =b.pzwh, dosage_unit =b.dosage_unit, " +
|
|
|
+ " country_flag =b.country_flag, manu_code =b.manu_code, drug_kind =b.drug_kind, gmp_flag =b.gmp_flag, cold_flag =b.cold_flag, visible_flag =b.visible_flag, " +
|
|
|
+ " chem_remark =b.chem_remark, bill_item_mz =b.bill_item_mz, bill_item_zy =b.bill_item_zy, percent_group_mz =b.percent_group_mz, fz_flag =b.fz_flag, " +
|
|
|
" percent_group_zy =b.percent_group_zy, del_flag =b.del_flag, yb_flag =b.yb_flag, self_flag_yb =b.self_flag_yb, n_code =b.n_code, zb_flag =b.zb_flag, " +
|
|
|
- " zb_supplyer =b.zb_supplyer, ps_flag =b.ps_flag, ex_code =b.ex_code, supply_type =b.supply_type, frequency =rtrim(b.frequency), " +
|
|
|
+ " zb_supplyer =b.zb_supplyer, ps_flag =b.ps_flag, qj_flag = b.qj_flag, ex_code =b.ex_code, supply_type =b.supply_type, frequency =rtrim(b.frequency), " +
|
|
|
" kss_flag =b.kss_flag, yp_level =b.yp_level, drug_id =b.drug_id, yb_code =b.yb_code, yb_comment =b.yb_comment, xnh_flag =b.xnh_flag, jb_flag =b.jb_flag, " +
|
|
|
- " audit_code =b.audit_code, comment =b.comment, categories_flag =b.categories_flag, ym_flag =b.ym_flag, dpym_flag =b.dpym_flag, " +
|
|
|
- " father_flag =b.father_flag, yb_code2 =b.yb_code2, yb_comment2 =b.yb_comment2, kjyw_flag =rtrim(b.kjyw_flag), ygyyjc_type =b.ygyyjc_type, " +
|
|
|
- " ddd_value =b.ddd_value, yp_id =b.yp_id, xtpp_name =b.xtpp_name, sp_name =b.sp_name, yb_comment_new =b.yb_comment_new, " +
|
|
|
+ " audit_code =b.audit_code, comment =b.comment, categories_flag =b.categories_flag, ym_flag =b.ym_flag, dpym_flag =b.dpym_flag, wg_type =b.wg_type, " +
|
|
|
+ " father_flag =b.father_flag, yb_code2 =b.yb_code2, yb_comment2 =b.yb_comment2, kjyw_flag =rtrim(b.kjyw_flag), ygyyjc_type =b.ygyyjc_type, cl_flag =b.cl_flag, " +
|
|
|
+ " ddd_value =b.ddd_value, yp_id =b.yp_id, xtpp_name =b.xtpp_name, sp_name =b.sp_name, yb_comment_new =b.yb_comment_new, is_central_purchase =b.is_central_purchase, " +
|
|
|
" yb_bl_new =b.yb_bl_new, yb_flag_new =b.yb_flag_new, byj_flag =b.byj_flag, drug_control_code =b.drug_control_code, antitumor_level=b.antitumor_level " +
|
|
|
" from ( select * from yp_zd_dict ) as b " +
|
|
|
" where yp_zd_dict.code = #{code} and yp_zd_dict.serial != #{serial} and yp_zd_dict.code = b.code and b.serial = #{serial}" +
|