|
|
@@ -167,12 +167,11 @@ public class KwsEnterpriseService {
|
|
|
throw new SystemException(HttpStatus.QUERY_FAIL_CODE, HttpStatus.ENT_EXISTS);
|
|
|
}
|
|
|
}
|
|
|
+ BeanUtils.copyProperties(reqVo, kwsEnterprise);
|
|
|
SysArea sysArea = sysAreaDao.selectById(reqVo.getCityCode());
|
|
|
if (Objects.nonNull(sysArea)) {
|
|
|
kwsEnterprise.setCityName(sysArea.getMergerName());
|
|
|
}
|
|
|
-
|
|
|
- BeanUtils.copyProperties(reqVo, kwsEnterprise);
|
|
|
if (kwsEnterpriseDao.update(kwsEnterprise) <= 0) {
|
|
|
throw new SystemException(HttpStatus.CRUD_FAIL_CODE, HttpStatus.UPDATE_FAIL);
|
|
|
}
|