|
@@ -30,7 +30,7 @@ public interface YpZdDictMapper {
|
|
|
" yb_code_xnh, yb_comment_city, yb_comment_xnh, ddd_unit, wg_type, fh_name, yb_flag_new, yb_comment_new, rtrim(yb_bl_new)yb_bl_new," +
|
|
|
" wjw_ypid, yjj_ypid, rsb_ypid, mz_restrict, isnull(byj_flag,0) byj_flag, national_code, national_name, national_status, match_oper," +
|
|
|
" match_date, cancel_match_oper, cancel_match_date, new_name, oper_id, oper_date, uploaded_flag, prescription_limit_days," +
|
|
|
- " isnull(fz_flag,0)fz_flag,isnull(is_central_purchase,0)is_central_purchase,purchase_code,drug_control_code,selfpay_prop,bar_code,buy_flag,health_flag" +
|
|
|
+ " isnull(fz_flag,0)fz_flag,isnull(is_central_purchase,0)is_central_purchase,purchase_code,drug_control_code,selfpay_prop,bar_code,buy_flag,health_flag,health_content" +
|
|
|
" from yp_zd_dict WITH(NOLOCK) where code = #{code,jdbcType=VARCHAR} and serial = #{serial}")
|
|
|
YpZdDict selectYpZdDictByCodeAndSerial(@Param("code") String code, @Param("serial") String serial);
|
|
|
|
|
@@ -54,7 +54,7 @@ public interface YpZdDictMapper {
|
|
|
" yb_code_xnh, yb_comment_city, yb_comment_xnh, ddd_unit, wg_type, fh_name, yb_flag_new, yb_comment_new, rtrim(yb_bl_new)yb_bl_new," +
|
|
|
" wjw_ypid, yjj_ypid, rsb_ypid, mz_restrict, isnull(byj_flag,0) byj_flag, national_code, national_name, national_status, match_oper," +
|
|
|
" match_date, cancel_match_oper, cancel_match_date, new_name, oper_id, oper_date, uploaded_flag, prescription_limit_days," +
|
|
|
- " isnull(fz_flag,0)fz_flag,isnull(is_central_purchase,0)is_central_purchase,purchase_code,drug_control_code,selfpay_prop,bar_code,buy_flag,health_flag" +
|
|
|
+ " isnull(fz_flag,0)fz_flag,isnull(is_central_purchase,0)is_central_purchase,purchase_code,drug_control_code,selfpay_prop,bar_code,buy_flag,health_flag,health_content" +
|
|
|
" from yp_zd_dict WITH(NOLOCK)",
|
|
|
"<when test='codes!=null'>",
|
|
|
" where code in",
|
|
@@ -85,7 +85,7 @@ public interface YpZdDictMapper {
|
|
|
" yb_code_xnh, yb_comment_city, yb_comment_xnh, ddd_unit, wg_type, fh_name, yb_flag_new, yb_comment_new, rtrim(yb_bl_new)yb_bl_new," +
|
|
|
" wjw_ypid, yjj_ypid, rsb_ypid, mz_restrict, isnull(byj_flag,0) byj_flag, national_code, national_name, national_status, match_oper," +
|
|
|
" match_date, cancel_match_oper, cancel_match_date, new_name, oper_id, oper_date, uploaded_flag, prescription_limit_days," +
|
|
|
- " isnull(fz_flag,0)fz_flag,isnull(is_central_purchase,0)is_central_purchase,purchase_code,drug_control_code,selfpay_prop,bar_code,buy_flag,health_flag" +
|
|
|
+ " isnull(fz_flag,0)fz_flag,isnull(is_central_purchase,0)is_central_purchase,purchase_code,drug_control_code,selfpay_prop,bar_code,buy_flag,health_flag,health_content" +
|
|
|
" from yp_zd_dict WITH(NOLOCK) where code = #{code,jdbcType=VARCHAR} ")
|
|
|
List<YpZdDict> selectYpZdDictByCode(@Param("code") String code);
|
|
|
|
|
@@ -138,7 +138,7 @@ public interface YpZdDictMapper {
|
|
|
" yb_code_xnh, d.yb_comment_city, d.yb_comment_xnh, d.ddd_unit, d.wg_type, d.fh_name, d.yb_flag_new, d.yb_comment_new, rtrim(d.yb_bl_new)yb_bl_new," +
|
|
|
" wjw_ypid, d.yjj_ypid, d.rsb_ypid, d.mz_restrict, isnull(byj_flag,0) byj_flag, d.national_code, d.national_name, d.national_status, d.match_oper," +
|
|
|
" match_date, d.cancel_match_oper, d.cancel_match_date, d.new_name, d.oper_id, d.oper_date, d.uploaded_flag, d.prescription_limit_days,d.antitumor_level," +
|
|
|
- " isnull(fz_flag,0)fz_flag,isnull(is_central_purchase,0)is_central_purchase,purchase_code,drug_control_code,selfpay_prop,d.bar_code,d.buy_flag,d.health_flag " +
|
|
|
+ " isnull(fz_flag,0)fz_flag,isnull(is_central_purchase,0)is_central_purchase,purchase_code,drug_control_code,selfpay_prop,d.bar_code,d.buy_flag,d.health_flag,d.health_content " +
|
|
|
" from " +
|
|
|
" (select a.code, max(a.serial)serial" +
|
|
|
" FROM yp_zd_dict a WITH(NOLOCK) ,yp_print_name b WITH(NOLOCK) " +
|
|
@@ -323,7 +323,7 @@ public interface YpZdDictMapper {
|
|
|
@Update(" update yp_zd_dict set buy_flag = #{buyFlag} where code = #{code} ")
|
|
|
int updateYpBuyFlag(@Param("code") String code, @Param("buyFlag") String buyFlag);
|
|
|
|
|
|
- @Update(" update yp_zd_dict set health_flag = #{healthFlag} where code = #{code} ")
|
|
|
- int saveDrugHealthFlag(@Param("code") String code, @Param("healthFlag") String healthFlag);
|
|
|
+ @Update(" update yp_zd_dict set health_flag = #{healthFlag}, health_content = #{healthContent} where code = #{code} ")
|
|
|
+ int saveDrugHealthFlag(@Param("code") String code, @Param("healthFlag") String healthFlag, @Param("healthContent") String healthContent);
|
|
|
|
|
|
}
|