|
|
@ -435,21 +435,21 @@ public class CustomerService {
|
|
|
|
Date lastDate = dateFormat.parse(dateFormat.format(calendar.getTime()));
|
|
|
|
Date lastDate = dateFormat.parse(dateFormat.format(calendar.getTime()));
|
|
|
|
calendar.set(Calendar.HOUR_OF_DAY, -24);
|
|
|
|
calendar.set(Calendar.HOUR_OF_DAY, -24);
|
|
|
|
Date earlyDate = dateFormat.parse(dateFormat.format(calendar.getTime()));
|
|
|
|
Date earlyDate = dateFormat.parse(dateFormat.format(calendar.getTime()));
|
|
|
|
if (roleCode.equals(RoleEnum.ROLE_CODE_DZ.getRoleCode())) {
|
|
|
|
|
|
|
|
List<StafferInfoVO> stafferInfoVOS = poiStoreStaffDOMapper.selectInfoById(userId);
|
|
|
|
List<StafferInfoVO> stafferInfoVOS = poiStoreStaffDOMapper.selectInfoById(userId);
|
|
|
|
Long shopId = stafferInfoVOS.get(0).getStoreId();
|
|
|
|
Long shopId = stafferInfoVOS.get(0).getStoreId();
|
|
|
|
List<FriendDTO> thisList = opSellerCustomerRelationDOMapper.selectShopListByDate(shopId, null, sellerId, search, thisDate, thisDate, type);
|
|
|
|
if (roleCode.equals(RoleEnum.ROLE_CODE_DZ.getRoleCode())) {
|
|
|
|
|
|
|
|
List<FriendDTO> thisList = opSellerCustomerRelationDOMapper.selectFriendListByShopId(shopId, sellerId, search, thisDate, thisDate, type);
|
|
|
|
results.put("this", thisList);
|
|
|
|
results.put("this", thisList);
|
|
|
|
List<FriendDTO> lastList = opSellerCustomerRelationDOMapper.selectShopListByDate(shopId, null, sellerId, search, lastDate, lastDate, type);
|
|
|
|
List<FriendDTO> lastList = opSellerCustomerRelationDOMapper.selectFriendListByShopId(shopId, sellerId, search, lastDate, lastDate, type);
|
|
|
|
results.put("last", lastList);
|
|
|
|
results.put("last", lastList);
|
|
|
|
List<FriendDTO> earlyList = opSellerCustomerRelationDOMapper.selectShopListByDate(shopId, null, sellerId, search, null, earlyDate, type);
|
|
|
|
List<FriendDTO> earlyList = opSellerCustomerRelationDOMapper.selectFriendListByShopId(shopId, sellerId, search, null, earlyDate, type);
|
|
|
|
results.put("early", earlyList);
|
|
|
|
results.put("early", earlyList);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
List<FriendDTO> thisList = opSellerCustomerRelationDOMapper.selectShopListByDate(null, userId, null, search, thisDate, thisDate, type);
|
|
|
|
List<FriendDTO> thisList = opSellerCustomerRelationDOMapper.selectFriendListBySeller(sellerId, search, thisDate, thisDate, type);
|
|
|
|
results.put("this", thisList);
|
|
|
|
results.put("this", thisList);
|
|
|
|
List<FriendDTO> lastList = opSellerCustomerRelationDOMapper.selectShopListByDate(null, userId, null, search, lastDate, lastDate, type);
|
|
|
|
List<FriendDTO> lastList = opSellerCustomerRelationDOMapper.selectFriendListBySeller(sellerId, search, lastDate, lastDate, type);
|
|
|
|
results.put("last", lastList);
|
|
|
|
results.put("last", lastList);
|
|
|
|
List<FriendDTO> earlyList = opSellerCustomerRelationDOMapper.selectShopListByDate(null, userId, null, search, null, earlyDate, type);
|
|
|
|
List<FriendDTO> earlyList = opSellerCustomerRelationDOMapper.selectFriendListBySeller(sellerId, search, null, earlyDate, type);
|
|
|
|
results.put("early", earlyList);
|
|
|
|
results.put("early", earlyList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return results;
|
|
|
|
return results;
|
|
|
|