diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/SltAgreementInfoServiceImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/SltAgreementInfoServiceImpl.java index 3da71b18..82e7842b 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/SltAgreementInfoServiceImpl.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/service/impl/SltAgreementInfoServiceImpl.java @@ -208,7 +208,7 @@ public class SltAgreementInfoServiceImpl implements SltAgreementInfoService { info.setApplyId(String.valueOf(apply.getId())); //对是否收费进行转换 //info.setPartType(PartTypeEnum.getCodeByInfo(info.getPartType())); - info.setPartType(info.getPartType()=="不收费" ? "0" : "1"); + info.setPartType(info.getPartType().equals("不收费") ? "0" : "1"); sltAgreementInfoMapper.insDetails(info); } for (SltAgreementInfo info : scrapList){ @@ -217,7 +217,7 @@ public class SltAgreementInfoServiceImpl implements SltAgreementInfoService { info.setApplyId(String.valueOf(apply.getId())); //info.setPartType(info.getScrapType()); //info.setPartType(ScrapTypeEnum.getCodeByInfo(info.getScrapType())); - info.setPartType(info.getScrapType()=="自然" ? "0" : "1"); + info.setPartType(info.getScrapType().equals("自然") ? "0" : "1"); sltAgreementInfoMapper.insDetails(info); } for (SltAgreementInfo info : loseList){