no message
This commit is contained in:
		| @ -210,6 +210,15 @@ public class ReceiveServiceImpl implements ReceiveService { | |||||||
|         String storeIds = user.getStoreId(); |         String storeIds = user.getStoreId(); | ||||||
|  |  | ||||||
|         if (user.getIsmerchant() == 1) { |         if (user.getIsmerchant() == 1) { | ||||||
|  |             if (!storeIds.matches(".*,.*")) { | ||||||
|  |                 userStore.setStoreId(Long.parseLong(storeIds)); | ||||||
|  |                 userStore.setOperatorId(Long.parseLong(user.getOperatorId())); | ||||||
|  |                 userStore.setUserId(Long.parseLong(String.valueOf(baseUserId))); | ||||||
|  |                 userStore.setDelFlag("0"); | ||||||
|  |                 userStore.setCreateTime(LocalDateTime.now()); | ||||||
|  |                 userStore.setUpdateTime(LocalDateTime.now()); | ||||||
|  |                 userStoreMapper.insertUserStore(userStore); | ||||||
|  |             } else { | ||||||
|                 String[] storeIdsArray = storeIds.split(","); |                 String[] storeIdsArray = storeIds.split(","); | ||||||
|                 for (String storeId : storeIdsArray) { |                 for (String storeId : storeIdsArray) { | ||||||
|                     userStore.setStoreId(Long.parseLong(storeId)); |                     userStore.setStoreId(Long.parseLong(storeId)); | ||||||
| @ -221,6 +230,7 @@ public class ReceiveServiceImpl implements ReceiveService { | |||||||
|                     userStoreMapper.insertUserStore(userStore); |                     userStoreMapper.insertUserStore(userStore); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|  |         } | ||||||
|  |  | ||||||
|         map.put("msg", "成功"); |         map.put("msg", "成功"); | ||||||
|         map.put("code", "200"); |         map.put("code", "200"); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user