|
|
@@ -1,8 +1,11 @@
|
|
|
package thyyxxk.webserver.service.inpatient.casefrontsheet;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.aspectj.weaver.reflect.IReflectionWorld;
|
|
|
+import org.jetbrains.annotations.NotNull;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
@@ -11,13 +14,17 @@ import thyyxxk.webserver.config.exception.ExceptionEnum;
|
|
|
import thyyxxk.webserver.dao.his.inpatient.casefrontsheet.JieShouHuiZhenDao;
|
|
|
import thyyxxk.webserver.entity.ResultVo;
|
|
|
import thyyxxk.webserver.entity.casefrontsheet.JieShouHuiZhenPojo;
|
|
|
+import thyyxxk.webserver.entity.datamodify.ZyDetailCharge;
|
|
|
import thyyxxk.webserver.entity.executeItem.YzZyPatientFee;
|
|
|
import thyyxxk.webserver.entity.login.UserInfo;
|
|
|
import thyyxxk.webserver.service.PublicServer;
|
|
|
import thyyxxk.webserver.service.redislike.RedisLikeService;
|
|
|
import thyyxxk.webserver.utils.*;
|
|
|
|
|
|
+import javax.annotation.PostConstruct;
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.Date;
|
|
|
+import java.util.HashSet;
|
|
|
import java.util.List;
|
|
|
import java.util.Set;
|
|
|
|
|
|
@@ -122,7 +129,9 @@ public class JieShouHuiZhenService implements Assertion {
|
|
|
JieShouHuiZhenPojo reqData = dao.getHuanZheXinXi(param.getAdmissTimes(), param.getReqTimes(), param.getInpatientNo());
|
|
|
dao.wanChenHuiZhen(param);
|
|
|
dao.updateOrderConsultationCode(orderCode, reqData.getActOrderNo());
|
|
|
- if (param.getStatusFlag().equals(2) && dao.orderFeeCount(reqData.getInpatientNo(), reqData.getAdmissTimes(), reqData.getActOrderNo()) == 0) {
|
|
|
+ if (param.getStatusFlag().equals(2)
|
|
|
+ && dao.feeCount(reqData.getInpatientNo(), reqData.getAdmissTimes(), reqData.getActOrderNo()) == 0
|
|
|
+ && dao.orderFeeCount(reqData.getInpatientNo(), reqData.getAdmissTimes(), reqData.getActOrderNo()) == 0) {
|
|
|
// 插入費用中间表
|
|
|
insertYzZyPatientFee(orderCode, reqData, userInfo);
|
|
|
}
|
|
|
@@ -131,7 +140,7 @@ public class JieShouHuiZhenService implements Assertion {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.NULL_POINTER);
|
|
|
}
|
|
|
|
|
|
- private void insertYzZyPatientFee(String orderCode, JieShouHuiZhenPojo reqData, UserInfo userInfo) {
|
|
|
+ private void insertYzZyPatientFee(String orderCode, @NotNull JieShouHuiZhenPojo reqData, @NotNull UserInfo userInfo) {
|
|
|
String occCode = nullIf(dao.getOccCode(orderCode), orderCode);
|
|
|
|
|
|
YzZyPatientFee fee = YzZyPatientFee.builder()
|
|
|
@@ -165,7 +174,6 @@ public class JieShouHuiZhenService implements Assertion {
|
|
|
return "0";
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|