|
@@ -243,260 +243,6 @@ public interface YpDictDao extends BaseMapper<YpZdDict> {
|
|
|
" from yp_zd_dict where code = #{code} and serial = #{serial}")
|
|
|
int insertYpBaseSync(@Param("code") String code, @Param("serial") String serial, @Param("groupNo") String groupNo);
|
|
|
|
|
|
- @Update("<script> " +
|
|
|
- " update yp_zd_dict " +
|
|
|
- "<trim prefix=\"set\" suffixOverrides=\",\">" +
|
|
|
- "<if test=\" name != null and name != '' \">" +
|
|
|
- " name = #{name}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"classCode != null and classCode != '' \">" +
|
|
|
- " class_code = #{classCode}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"dosage != null and dosage != '' \">" +
|
|
|
- " dosage = #{dosage}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"concentration != null and concentration != '' \">" +
|
|
|
- " concentration = #{concentration}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"weight != null and weight != '' \">" +
|
|
|
- " weight = #{weight}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"weighUnit != null and weighUnit != '' \">" +
|
|
|
- " weigh_unit = #{weighUnit}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"volum != null and volum != '' \">" +
|
|
|
- " volum = #{volum}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"volUnit != null and volUnit != '' \">" +
|
|
|
- " vol_unit = #{volUnit}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"miniUnit != null and miniUnit != '' \">" +
|
|
|
- " mini_unit = #{miniUnit}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"packSize != null and packSize != '' \">" +
|
|
|
- " pack_size = #{packSize}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"packUnit != null and packUnit != '' \">" +
|
|
|
- " pack_unit = #{packUnit}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"specification != null and specification != '' \">" +
|
|
|
- " specification = #{specification}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"specification2 != null and specification2 != '' \">" +
|
|
|
- " specification2 = #{specification2}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"packRetprice != null and packRetprice != '' \">" +
|
|
|
- " pack_retprice = #{packRetprice}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"retprice != null and retprice != '' \">" +
|
|
|
- " retprice = #{retprice}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"buyPrice != null and buyPrice != '' \">" +
|
|
|
- " buy_price = #{buyPrice}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"ybxjPrice != null and ybxjPrice != '' \">" +
|
|
|
- " ybxj_price = #{ybxjPrice}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"percentGroupMz != null and percentGroupMz != '' \">" +
|
|
|
- " percent_group_mz = #{percentGroupMz}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"percentGroupZy != null and percentGroupZy != '' \">" +
|
|
|
- " percent_group_zy = #{percentGroupZy}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"selfFlag != null and selfFlag != '' \">" +
|
|
|
- " self_flag = #{selfFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"supriceFlag != null and supriceFlag != '' \">" +
|
|
|
- " suprice_flag = #{supriceFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"drugFlag != null and drugFlag != '' \">" +
|
|
|
- " drug_flag = #{drugFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"pyCode != null and pyCode != '' \">" +
|
|
|
- " py_code = #{pyCode}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"dcode != null and dcode != '' \">" +
|
|
|
- " d_code = #{dcode}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"infusionFlag != null and infusionFlag != '' \">" +
|
|
|
- " infusion_flag = #{infusionFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"visibleFlag != null and visibleFlag != '' \">" +
|
|
|
- " visible_flag = #{visibleFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"delFlag != null and delFlag != '' \">" +
|
|
|
- " del_flag = #{delFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"countryFlag != null and countryFlag != '' \">" +
|
|
|
- " country_flag = #{countryFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"manuCode != null and manuCode != '' \">" +
|
|
|
- " manu_code = #{manuCode}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"coldFlag != null and coldFlag != '' \">" +
|
|
|
- " cold_flag = #{coldFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"chemRemark != null and chemRemark != '' \">" +
|
|
|
- " chem_remark = #{chemRemark}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"drugKind != null and drugKind != '' \">" +
|
|
|
- " drug_kind = #{drugKind}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"zbFlag != null and zbFlag != '' \">" +
|
|
|
- " zb_flag = #{zbFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"zbSupplyer != null and zbSupplyer != '' \">" +
|
|
|
- " zb_supplyer = #{zbSupplyer}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"ncode != null and ncode != '' \">" +
|
|
|
- " n_code = #{ncode}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"billItemMz != null and billItemMz != '' \">" +
|
|
|
- " bill_item_mz = #{billItemMz}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"billItemZy != null and billItemZy != '' \">" +
|
|
|
- " bill_item_zy = #{billItemZy}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"supplyType != null and supplyType != '' \">" +
|
|
|
- " supply_type = #{supplyType}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"frequency != null and frequency != '' \">" +
|
|
|
- " frequency = #{frequency}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"psFlag != null and psFlag != '' \">" +
|
|
|
- " ps_flag = #{psFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"exCode != null and exCode != '' \">" +
|
|
|
- " ex_code = #{exCode}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"kssFlag != null and kssFlag != '' \">" +
|
|
|
- " kss_flag = #{kssFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"ypLevel != null and ypLevel != '' \">" +
|
|
|
- " yp_level = #{ypLevel}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"selfFlagYb != null and selfFlagYb != '' \">" +
|
|
|
- " self_flag_yb = #{selfFlagYb}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"orderDosage != null and orderDosage != '' \">" +
|
|
|
- " order_dosage = #{orderDosage}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"dosageUnit != null and dosageUnit != '' \">" +
|
|
|
- " dosage_unit = #{dosageUnit}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"jbFlag != null and jbFlag != '' \">" +
|
|
|
- " jb_flag = #{jbFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"location != null and location != '' \">" +
|
|
|
- " location = #{location}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"auditCode != null and auditCode != '' \">" +
|
|
|
- " audit_code = #{auditCode}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"fatherFlag != null and fatherFlag != '' \">" +
|
|
|
- " father_flag = #{fatherFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"ybCode2 != null and ybCode2 != '' \">" +
|
|
|
- " yb_code2 = #{ybCode2}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"ybComment2 != null and ybComment2 != '' \">" +
|
|
|
- " yb_comment2 = #{ybComment2}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"byjFlag != null and byjFlag != '' \">" +
|
|
|
- " byj_flag = #{byjFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"antitumorLevel != null and antitumorLevel != '' \">" +
|
|
|
- " antitumor_level = #{antitumorLevel}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"categoriesFlag != null and categoriesFlag != '' \">" +
|
|
|
- " categories_flag = #{categoriesFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"purchaseCode != null and purchaseCode != '' \">" +
|
|
|
- " purchase_code = #{purchaseCode}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"fzFlag != null and fzFlag != '' \">" +
|
|
|
- " fz_flag = #{fzFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"clFlag != null and clFlag != '' \">" +
|
|
|
- " cl_flag = #{clFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"jsFlag != null and jsFlag != '' \">" +
|
|
|
- " js_flag = #{jsFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"qjFlag != null and qjFlag != '' \">" +
|
|
|
- " qj_flag = #{qjFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"ymFlag != null and ymFlag != '' \">" +
|
|
|
- " ym_flag = #{ymFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"dpymFlag != null and dpymFlag != '' \">" +
|
|
|
- " dpym_flag = #{dpymFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"isCentralPurchase != null and isCentralPurchase != '' \">" +
|
|
|
- " is_central_purchase = #{isCentralPurchase}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"kjywFlag != null and kjywFlag != '' \">" +
|
|
|
- " kjyw_flag = #{kjywFlag}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"dddValue != null and dddValue != '' \">" +
|
|
|
- " ddd_value = #{dddValue}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"dddUnit != null and dddUnit != '' \">" +
|
|
|
- " ddd_unit = #{dddUnit}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"pzwh != null and pzwh != '' \">" +
|
|
|
- " pzwh = #{pzwh}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"comment != null and comment != '' \">" +
|
|
|
- " comment = #{comment}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"xtppName != null and xtppName != '' \">" +
|
|
|
- " xtpp_name = #{xtppName}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"spName != null and spName != '' \">" +
|
|
|
- " sp_name = #{spName}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"fhName != null and fhName != '' \">" +
|
|
|
- " fh_name = #{fhName}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"ybFlagNew != null and ybFlagNew != '' \">" +
|
|
|
- " yb_flag_new = #{ybFlagNew}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"ybBlNew != null and ybBlNew != '' \">" +
|
|
|
- " yb_bl_new = #{ybBlNew}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"wgType != null and wgType != '' \">" +
|
|
|
- " wg_type = #{wgType}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"ybCommentNew != null and ybCommentNew != '' \">" +
|
|
|
- " yb_comment_new = #{ybCommentNew}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"wjwYpid != null and wjwYpid != '' \">" +
|
|
|
- " wjw_ypid = #{wjwYpid}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"yjjYpid != null and yjjYpid != '' \">" +
|
|
|
- " yjj_ypid = #{yjjYpid}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"rsbYpid != null and rsbYpid != '' \">" +
|
|
|
- " rsb_ypid = #{rsbYpid}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"drugControlCode != null and drugControlCode != '' \">" +
|
|
|
- " drug_control_code = #{drugControlCode}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"nationalCode != null and nationalCode != '' \">" +
|
|
|
- " national_code = #{nationalCode}" +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"operDate != null and operDate != '' \">" +
|
|
|
- " oper_date = #{operDate}, " +
|
|
|
- "</if>" +
|
|
|
- "<if test=\"operId != null and operId != '' \">" +
|
|
|
- " oper_id = #{operId}, " +
|
|
|
- "</if>" +
|
|
|
- "</trim>" +
|
|
|
- " where code = #{code} and serial = #{serial}" +
|
|
|
- "</script>")
|
|
|
- int updateYpZdDictSync(YpZdDictVo ypZdDictVo);
|
|
|
-
|
|
|
@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, " +
|