浏览代码

评价器添加开关

hsh 1 年之前
父节点
当前提交
4b6a0be2b1
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzPharmacyServiceImpl.java

+ 9 - 0
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzPharmacyServiceImpl.java

@@ -17,6 +17,7 @@ import cn.hnthyy.thmz.mapper.his.mz.MzDrugWinMapper;
 import cn.hnthyy.thmz.mapper.his.mz.MzPharmacyMapper;
 import cn.hnthyy.thmz.mapper.his.yp.YpBaseYfMapper;
 import cn.hnthyy.thmz.mapper.his.yp.YpZdManufactoryMapper;
+import cn.hnthyy.thmz.service.SysParametersService;
 import cn.hnthyy.thmz.service.his.mz.MzPharmacyService;
 import cn.hnthyy.thmz.service.thmz.TsmzService;
 import cn.hnthyy.thmz.vo.ChargeDetailInfoVo;
@@ -65,6 +66,9 @@ public class MzPharmacyServiceImpl implements MzPharmacyService {
     @SuppressWarnings("all")
     @Autowired
     private MzDrugWinMapper mzDrugWinMapper;
+    @SuppressWarnings("all")
+    @Autowired
+    private SysParametersService sysParametersService;
     //语音生成接口地址
     @Value("${audioServiceUrl}")
     private String audioServiceUrl;
@@ -208,6 +212,11 @@ public class MzPharmacyServiceImpl implements MzPharmacyService {
     @Override
     @Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT, timeout = 36000, rollbackFor = Exception.class)
     public Map<String, Object> sendMedicineProcessing(MzChargeDetail mzChargeDetail, User user, HttpServletRequest request,boolean flag) throws MzException {
+        // 评价器开关
+        String value = sysParametersService.getSysParametersByCode("mzYfPjq");
+        if("1".equals(value)){
+            flag = false;
+        }
         Map<String, Object> resultMap = new HashMap<>();
         int i = mzPharmacyMapper.selectConfirmFlagByRealNo(mzChargeDetail.getRealNo(), mzChargeDetail.getGroupNo(), mzChargeDetail.getOrderNo());
         if (i != 0 && i != 5) {