Commit 4f409ddc by 徐高华

所有的时候不带活码ID查询

parent 1f795b2e
......@@ -170,9 +170,14 @@ public class HmQrcodeController {
if(CollectionUtils.isEmpty(hmIds)) {
return RestResponse.successResult(new StatisticsDTO()) ;
}
StringBuffer stringBuffer = new StringBuffer();
hmIds.forEach(c -> stringBuffer.append(c).append(","));
hmQrcodeListQO.getInFields().setHmId(stringBuffer.toString());
// 如果是所有门店
if (!storeList.contains("-1") || null != qdto.getStartTime() || null != qdto.getHmGroupId() ||
null != qdto.getHmTypeInt() || null != qdto.getStatusFlagInt() || StringUtils.isNotBlank(qdto.getClerkSelect())
|| StringUtils.isNotBlank(qdto.getStoreSelect()) || StringUtils.isNotBlank(qdto.getHmSelect())) {
StringBuffer stringBuffer = new StringBuffer();
hmIds.forEach(c -> stringBuffer.append(c).append(","));
hmQrcodeListQO.getInFields().setHmId(stringBuffer.toString());
}
StatisticsDTO statisticsDTO = DataHttpUtil.post(StatisticsApolloKeyConstant.data_haoban_hm_list, hmQrcodeListQO);
List<HmQrcodeListDTO> data = JSON.parseArray(JSON.toJSONString(statisticsDTO.getData()), HmQrcodeListDTO.class);
if (CollectionUtils.isNotEmpty(data)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment