|
@@ -19,6 +19,8 @@ public interface NationalMatchDao {
|
|
|
|
|
|
@Select("select a.code,a.serial,a.new_name as name,type=#{type}," +
|
|
|
"a.national_code,a.national_name,a.uploaded_flag, " +
|
|
|
+ "startTime=(select start_time from t_si_dl_ptnt_wstn_mdcn where code=a.national_code)," +
|
|
|
+ "endTime=(select end_time from t_si_dl_ptnt_wstn_mdcn where code=a.national_code)," +
|
|
|
"unit=(select name from yp_zd_unit where yp_zd_unit.code=a.dosage_unit), " +
|
|
|
"dosage=(select name from yp_zd_dosage where yp_zd_dosage.code=a.dosage), " +
|
|
|
"ltrim(a.specification) as specification,rtrim(a.pzwh) as approvalNumber, " +
|
|
@@ -37,6 +39,8 @@ public interface NationalMatchDao {
|
|
|
|
|
|
@Select("select a.code,a.serial,a.new_name as name,type=#{type}," +
|
|
|
"a.national_code,a.national_name,a.uploaded_flag, " +
|
|
|
+ "startTime=(select start_time from t_si_dl_chns_hbl where code=a.national_code)," +
|
|
|
+ "endTime=(select end_time from t_si_dl_chns_hbl where code=a.national_code)," +
|
|
|
"unit=(select name from yp_zd_unit where yp_zd_unit.code=a.dosage_unit), " +
|
|
|
"dosage=(select name from yp_zd_dosage where yp_zd_dosage.code=a.dosage), " +
|
|
|
"ltrim(a.specification) as specification,rtrim(a.pzwh) as approvalNumber, " +
|
|
@@ -54,6 +58,8 @@ public interface NationalMatchDao {
|
|
|
@Param("status") int status);
|
|
|
|
|
|
@Select("select code,new_name as name,charge_unit as unit,type=#{type},discription,specification," +
|
|
|
+ "startTime=(select start_time from t_si_dl_mdcn_sply where code=national_code)," +
|
|
|
+ "endTime=(select end_time from t_si_dl_mdcn_sply where code=national_code)," +
|
|
|
"national_code,uploaded_flag,national_name,yb_comment as factory from zd_charge_item " +
|
|
|
"where isnull(national_status,0)=#{status} and isnull(del_flag,0)=#{delFlag} and " +
|
|
|
"class_code='J' and code like #{code} and name like #{name}")
|
|
@@ -66,6 +72,8 @@ public interface NationalMatchDao {
|
|
|
|
|
|
@Select("select code,new_name as name,charge_unit as unit,type=#{type}, discription,specification,uploaded_flag," +
|
|
|
"national_code,national_name,s_code as standardCode, charge_amount as price, " +
|
|
|
+ "startTime=(select start_date from t_si_dl_mdcn_srvc where code=a.national_code)," +
|
|
|
+ "endTime=(select end_date from t_si_dl_mdcn_srvc where code=a.national_code)," +
|
|
|
"localName=(select b.local_medical_service_name from si_central_services b where b.national_code=a.national_code) " +
|
|
|
"from zd_charge_item a " +
|
|
|
"where isnull(national_status,0)=#{status} and isnull(del_flag,0)=#{delFlag} and " +
|
|
@@ -83,10 +91,9 @@ public interface NationalMatchDao {
|
|
|
@Select("select code as nationalCode,drug_trade_name as nationalName,drug_dosage_forms as actualDosage, " +
|
|
|
"specifications=(drug_specifications+' x'+minimum_packing_quantity+minimum_preparation_unit+'/'+minimum_packing_unit), " +
|
|
|
"packaging_material as packingMaterial,production_name as factory,license_number as approvalNumber, " +
|
|
|
- "drug_supervision_local_code as drugStandardCode from t_si_dl_ptnt_wstn_mdcn " +
|
|
|
+ "drug_supervision_local_code as drugStandardCode,start_time,end_time from t_si_dl_ptnt_wstn_mdcn " +
|
|
|
"where drug_trade_name like #{name} and license_number like #{approve}")
|
|
|
- List<SiCentralMedicine> selectNationalMedicines(@Param("name") String name,
|
|
|
- @Param("approve") String approve);
|
|
|
+ List<SiCentralMedicine> selectNationalMedicines(@Param("name") String name, @Param("approve") String approve);
|
|
|
|
|
|
@Select("select code as nationalCode,monoo_name as nationalName,start_time,end_time " +
|
|
|
"from t_si_dl_chns_hbl where monoo_name like #{name}")
|
|
@@ -94,7 +101,7 @@ public interface NationalMatchDao {
|
|
|
|
|
|
@Select("select code as nationalCode,service_name as nationalName,isnull(connotation,'') as projectConnotation, " +
|
|
|
"exclude_content as exclusions,charge_unit as valuationUnit,entry_specification as projectDescription, " +
|
|
|
- "start_date,end_date from t_si_dl_mdcn_srvc where service_name like #{name}")
|
|
|
+ "start_date as start_time,end_date as end_time from t_si_dl_mdcn_srvc where service_name like #{name}")
|
|
|
List<SiCentralServices> selectNationalServices(@Param("name") String name);
|
|
|
|
|
|
@Select("select code as nationalCode,supplies_name as nationalName,si_universal_name as siName, " +
|