添加备注

master
bynt 1 year ago
parent f55cdbdb90
commit ca6a39f862

@ -80,8 +80,8 @@ public class CustomServiceImpl extends ExtendServiceImpl<CustomMapper, CustomEnt
customEntity.setType(2); customEntity.setType(2);
customEntity.setBatchNo(newCode); customEntity.setBatchNo(newCode);
customEntity.setCompanyId(companyId); customEntity.setCompanyId(companyId);
int insert = baseMapper.insert(customEntity);
customEntity.setEnterName(user.getUsername()); customEntity.setEnterName(user.getUsername());
int insert = baseMapper.insert(customEntity);
List<CustomStoreEntity> customStoreEntities = customDTO.getCustomStoreEntities(); List<CustomStoreEntity> customStoreEntities = customDTO.getCustomStoreEntities();
customStoreEntities.forEach(c -> c.setCustomId(customEntity.getCustomId())); customStoreEntities.forEach(c -> c.setCustomId(customEntity.getCustomId()));
customStoreService.saveBatch(customStoreEntities); customStoreService.saveBatch(customStoreEntities);
@ -149,8 +149,8 @@ public class CustomServiceImpl extends ExtendServiceImpl<CustomMapper, CustomEnt
for (CustomStoreEntity store : customStores) { for (CustomStoreEntity store : customStores) {
Long userId = storeUserService.findUserIdByStoreId(store.getStoreId()); Long userId = storeUserService.findUserIdByStoreId(store.getStoreId());
if (ObjectUtil.isNotNull(userId) && userId > 0) { if (ObjectUtil.isNotNull(userId) && userId > 0) {
ClueDTO clueDTO = ClueDTO.builder().originName(ClueSourceEnum.STORE_DISTRIBUTION.getDescription()).nid ClueDTO clueDTO = ClueDTO.builder().originName(ClueSourceEnum.STORE_DISTRIBUTION.getDescription()).remark
(AESUtils.encrypt(customEntity.getCustomNid(), securityProperties.getPasswordSecretKey())).assignedBy (customEntity.getRemark()).nid(AESUtils.encrypt(customEntity.getCustomNid(), securityProperties.getPasswordSecretKey())).assignedBy
(userId).createBy(customEntity.getCompanyId()).assignedName(store.getStoreName()).otherClue(otherClue).build(); (userId).createBy(customEntity.getCompanyId()).assignedName(store.getStoreName()).otherClue(otherClue).build();
list.add(clueDTO); list.add(clueDTO);
} }

Loading…
Cancel
Save