Browse Source

修改企业信息上报bug

feature/screenDataPush
liuchuang 4 years ago
parent
commit
a1f3dc2912
  1. 2
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/enterprisereport/service/impl/EnterpriseReportServiceImpl.java

2
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/enterprisereport/service/impl/EnterpriseReportServiceImpl.java

@ -195,7 +195,7 @@ public class EnterpriseReportServiceImpl extends BaseServiceImpl<EnterpriseRepor
entityQueryWrapper.eq("QUARTER",enterpriseReportAddFormDTO.getQuarter());
entityQueryWrapper.eq("ENTERPRISE_NAME",enterpriseReportAddFormDTO.getEnterpriseName());
List<EnterpriseReportEntity> enterpriseReportEntities = baseDao.selectList(entityQueryWrapper);
if(enterpriseReportEntities.size()>1){
if(enterpriseReportEntities.size()>0){
enterpriseReportEntity.setId(enterpriseReportEntities.get(0).getId());
baseDao.updateById(enterpriseReportEntity);
return new Result();

Loading…
Cancel
Save