导入修改

This commit is contained in:
zhangheng 2024-02-27 15:36:30 +08:00
parent ff2adb4396
commit aff9c75d6b

View File

@ -163,10 +163,9 @@ public class AgencyServiceImpl implements IAgencyService {
for (Agency item : subtractList) {
item.setCreateBy(SecurityUtils.getUsername());
item.setCreateTime(new Date());
item.setAgencyCode(Constants.CATEGORY_CODE + generateSystemCodeUtil.generateSystemCode(Constants.CATEGORY_CODE));
Agency nurseStations = new Agency();
BeanUtils.copyProperties(item, nurseStations);
saveAgencyList.add(nurseStations);
Agency newAgency = new Agency();
BeanUtils.copyProperties(item, newAgency);
saveAgencyList.add(newAgency);
}
int insertCount = agencyMapper.insertAgencyImportList(saveAgencyList);
if (insertCount <= 0) {