|
|
|
@@ -99,17 +99,17 @@ public class WxMsgServiceImpl implements WxMsgService { |
|
|
|
public PageInfo<WxMsg> listAsPage(WxMsg record, Integer pageIndex, Integer pageSize) { |
|
|
|
PageHelper.startPage(pageIndex, pageSize); |
|
|
|
List<WxMsg> templist = wxMsgMapper.findList(record); |
|
|
|
for (WxMsg temp : templist) { |
|
|
|
|
|
|
|
Map<String, String> params = new HashMap<>(); |
|
|
|
params.put("msgId", temp.getId().toString()); |
|
|
|
params.put("status", "1"); |
|
|
|
int success = wxMsgCallbackMapper.queryMsgSendTotal(params); |
|
|
|
params.put("status", "0"); |
|
|
|
int error = wxMsgCallbackMapper.queryMsgSendTotal(params); |
|
|
|
temp.setSuccessNumber(success*temp.getPerCount()); |
|
|
|
temp.setErrorNumber(error*temp.getPerCount()); |
|
|
|
} |
|
|
|
// for (WxMsg temp : templist) { |
|
|
|
// |
|
|
|
// Map<String, String> params = new HashMap<>(); |
|
|
|
// params.put("msgId", temp.getId().toString()); |
|
|
|
// params.put("status", "1"); |
|
|
|
// int success = wxMsgCallbackMapper.queryMsgSendTotal(params); |
|
|
|
// params.put("status", "0"); |
|
|
|
// int error = wxMsgCallbackMapper.queryMsgSendTotal(params); |
|
|
|
// temp.setSuccessNumber(success*temp.getPerCount()); |
|
|
|
// temp.setErrorNumber(error*temp.getPerCount()); |
|
|
|
// } |
|
|
|
|
|
|
|
PageInfo<WxMsg> pageInfo = new PageInfo<>(templist); |
|
|
|
return pageInfo; |
|
|
|
|