|
|
@ -209,7 +209,8 @@ 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){ |
|
|
|
String infoModifyId = enterpriseReportAddFormDTO.getInfoModifyId(); |
|
|
|
if(enterpriseReportEntities.size()>1 ||infoModifyId.length()>0){ |
|
|
|
enterpriseReportEntity.setId(enterpriseReportEntities.get(0).getId()); |
|
|
|
baseDao.updateById(enterpriseReportEntity); |
|
|
|
return new Result(); |
|
|
|