导入修改
This commit is contained in:
parent
ff2adb4396
commit
aff9c75d6b
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user