浏览代码

删除没用的代码和定时任务

xiaochan 2 年之前
父节点
当前提交
e4d9d1eb8b

+ 0 - 128
src/main/java/thyyxxk/webserver/dao/his/inpatient/XiangMuLuRuDao.java

@@ -126,110 +126,6 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
             "                manufactor = (select name from yp_zd_manufactory where manu_code = yp_zd_manufactory.code) from  yp_zd_dict where (py_code like #{pyCode} or code like #{pyCode} or name like #{pyCode})")
     List<FeeSelect> getChargeCode(String pyCode);
 
-    /**
-     * @param inpatientNo 住院次数
-     * @param admissTimes 住院号
-     * @param list        需要退费的流水号
-     * @return 获取患者的全部详细信息 因为要生成一条一样的数据 只是 费用和数量不一致 以及录入人 和 录入时间
-     */
-    @Select("<script>" +
-            "select " +
-            "inpatient_no, " +
-            "       admiss_times, " +
-            "       ledger_sn, " +
-            "       detail_sn, " +
-            "       charge_date, " +
-            "       op_id_code, " +
-            "       charge_code, " +
-            "       bill_item_code = (select  bill_item_zy from zd_charge_item where code = charge_code), " +
-            "       infant_flag, " +
-            "       charge_status, " +
-            "       retprice, " +
-            "       charge_amount, " +
-            "       charge_fee, " +
-            "       self_flag, " +
-            "       separate_flag, " +
-            "       suppress_flag, " +
-            "       ward_code, " +
-            "       dept_code, " +
-            "       order_no," +
-            "       order_no as new_order_no, " +
-            "       ope_flag, " +
-            "       exec_unit, " +
-            "       gen_time, " +
-            "       pay_percent, " +
-            "       zj_flag, " +
-            "       zfl, " +
-            "       rtrim(charge_code_mx) as  charge_code_mx, " +
-            "       case when nullif(serial, '') is null then '00' else rtrim(serial) end as serial, " +
-            "       zy_serial_no, " +
-            "       doctor_code, " +
-            "       yb_self_flag, " +
-            "       orig_charge_fee, " +
-            "       confirm_id, " +
-            "       trans_flag_yb, " +
-            "       ss_code, " +
-            "       gs_flag, " +
-            "       refer_physician, " +
-            "       consult_physician, " +
-            "       ori_detail_sn" +
-            " from zy_detail_charge where inpatient_no = #{inpatientNo} and admiss_times = #{admissTimes} and ledger_sn = #{ledgerSn} and detail_sn in " +
-            "<foreach collection='list' item='item' index='index' open='(' close=')' separator=','>" +
-            "#{item.detailSn}" +
-            "</foreach>" +
-            "</script>")
-    List<ZyDetailCharge> huoQuJuTiFeiYong(@Param("inpatientNo") String inpatientNo,
-                                          @Param("admissTimes") Integer admissTimes,
-                                          @Param("ledgerSn") Integer ledgerSn,
-                                          @Param("list") List<ZyDetailCharge> list);
-
-
-    /**
-     * 插入数据
-     *
-     * @param list 插入退费的数据 生成一条一样的数据 只是 费用和数量不一致 以及录入人 和 录入时间 ori_detail_sn 保存退费的原流水号
-     */
-    @Insert("<script>" +
-            "insert into zy_detail_charge(inpatient_no, admiss_times, ledger_sn, detail_sn, charge_date, op_id_code, charge_code, infant_flag, " +
-            "charge_status, retprice, charge_amount, charge_fee, self_flag, separate_flag, suppress_flag, ward_code, dept_code, order_no, ope_flag, exec_unit, gen_time, " +
-            "pay_percent, zj_flag, zfl, charge_code_mx, serial, zy_serial_no, doctor_code, yb_self_flag, orig_charge_fee, confirm_id, trans_flag_yb, ss_code, gs_flag, " +
-            "refer_physician, consult_physician, ori_detail_sn)   " +
-            "values " +
-            "<foreach collection='list' item='item' index='index' separator=','>" +
-            "(#{item.inpatientNo},#{item.admissTimes},#{item.ledgerSn},(select max(detail_sn) + (${index} + 1) from zy_detail_charge d where d.inpatient_no = '${item.inpatientNo}' and d.admiss_times = ${item.admissTimes}),getdate(),#{item.opIdCode},#{item.chargeCode},#{item.infantFlag}," +
-            "#{item.chargeStatus},#{item.retprice},cast(#{item.chargeAmount,jdbcType=DECIMAL} as decimal(14,5)),cast(#{item.chargeFee,jdbcType=DECIMAL} as decimal(14,5))," +
-            "#{item.selfFlag},#{item.separateFlag},#{item.suppressFlag},#{item.wardCode},#{item.deptCode},#{item.newOrderNo}," +
-            "#{item.opeFlag},#{item.execUnit},#{item.oldGenTime}," +
-            "#{item.payPercent},#{item.zjFlag},#{item.zfl},#{item.chargeCodeMx},#{item.serial},#{item.zySerialNo},#{item.doctorCode}," +
-            "#{item.ybSelfFlag},cast(#{item.origChargeFee,jdbcType=DECIMAL} as decimal(14,5)),#{item.confirmId},0,#{item.ssCode},#{item.gsFlag}," +
-            "#{item.referPhysician},#{item.consultPhysician},#{item.oriDetailSn})" +
-            "</foreach>" +
-            "</script>")
-    void xiangMuTuiFei(@Param("list") List<ZyDetailCharge> list);
-
-    /**
-     * 更新对应 退费的正数 流水
-     *
-     * @param inpatientNo 住院号
-     * @param admissTimes 住院次数
-     * @param ledgerSn    账页号
-     * @param list        正流水
-     */
-    @Update("<script>" +
-            "<foreach collection='list' item='item' index='index'>" +
-            "update zy_detail_charge set ori_detail_sn = #{flag} where " +
-            "inpatient_no = #{inpatientNo} and admiss_times = #{admissTimes} " +
-            "and ledger_sn = #{ledgerSn} " +
-            "and charge_fee &gt; 0 and charge_amount &gt; 0  " +
-            "and detail_sn = #{item} " +
-            "</foreach>" +
-            "</script>")
-    void genXinZhenShuTuiFeiLiuShui(@Param("inpatientNo") String inpatientNo,
-                                    @Param("admissTimes") Integer admissTimes,
-                                    @Param("ledgerSn") Integer ledgerSn,
-                                    @Param("list") List<Integer> list,
-                                    @Param("flag") int flag);
-
     /**
      * 退药汇总单
      */
@@ -242,30 +138,6 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
                         @Param("groupNo") String groupNo,
                         @Param("refundReason") Integer refundReason);
 
-    @Insert("<script>" +
-            "insert into yz_yp_zy_order (inpatient_no, admiss_times, name, bed_no, dept_code, ward_code, charge_code, amount, " +
-            "                            retprice, charge_date, infant_flag, drawer, always_flag, status_flag, drug_class,  " +
-            "                            occ_time, act_order_no, serial, group_no, doctor_name, page_no_ty,ledger_sn,detail_sn,serail,page_class) " +
-            "values " +
-            "<foreach collection='list' item='item' index='index' separator=','>" +
-            "(#{patNo}, #{times}, #{name}, #{bedNo}, #{wardCode},  #{wardCode}, #{item.chargeCodeMx}, #{item.chargeAmount,jdbcType=REAL}, " +
-            "       (select pack_retprice from yp_zd_dict where code = #{item.chargeCodeMx} and serial = #{item.serial}), getdate(), #{infantFlag}, #{userCode}, 'a', '1', " +
-            "       #{item.drugClass},  getdate(), ${index}, #{item.serial}, #{groupNo}, " +
-            "       #{item.doctorCode}, #{pageNo},#{ledgerSn},#{item.detailSn},0,'HT')" +
-            "</foreach>" +
-            "</script>")
-    void detailsOfDrugReturnForm(@Param("list") List<ZyDetailCharge> list,
-                                 @Param("patNo") String patNo,
-                                 @Param("times") Integer times,
-                                 @Param("name") String name,
-                                 @Param("bedNo") String bedNo,
-                                 @Param("wardCode") String wardCode,
-                                 @Param("infantFlag") Integer infantFlag,
-                                 @Param("groupNo") String groupNo,
-                                 @Param("userCode") String userCode,
-                                 @Param("pageNo") Integer pageNo,
-                                 @Param("ledgerSn") Integer ledgerSn);
-
     /**
      * 获取模板
      *

+ 0 - 31
src/main/java/thyyxxk/webserver/scheduled/UploadFrontSheetTask.java

@@ -1,31 +0,0 @@
-package thyyxxk.webserver.scheduled;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.scheduling.annotation.Scheduled;
-import org.springframework.stereotype.Component;
-import thyyxxk.webserver.dao.his.medicalinsurance.SiManageDao;
-import thyyxxk.webserver.entity.inpatient.patient.Overview;
-import thyyxxk.webserver.service.medicalinsurance.SiManageService;
-
-import java.util.List;
-
-@Component
-public class UploadFrontSheetTask {
-
-    private final SiManageDao dao;
-    private final SiManageService service;
-
-    @Autowired
-    public UploadFrontSheetTask(SiManageDao dao, SiManageService service) {
-        this.dao = dao;
-        this.service = service;
-    }
-
-    @Scheduled(cron = "0 20 2 * * ?")
-    private void startUploadStatistics() {
-        List<Overview> list = dao.selectNotUploadedSheet();
-        for (Overview item : list) {
-            service.uploadFrontSheet(item.getInpatientNo(), item.getAdmissTimes());
-        }
-    }
-}

+ 1 - 1
src/main/java/thyyxxk/webserver/service/inpatient/XiangMuLuRuService.java

@@ -277,7 +277,7 @@ public class XiangMuLuRuService {
         if (StringUtil.isBlank(param.getInpatientNo()) || param.getAdmissTimes() == null) {
             errorStr.append("住院号和住院次数为空<br />");
         }
-        if (param.getList().size() == 0) {
+        if (param.getList().isEmpty()) {
             errorStr.append("没有要录入的项目 <br />");
         }
         if (StringUtil.isBlank(param.getWard())) {