Commit 0cd89c22 by guojuxing

Merge remote-tracking branch 'origin/developer' into developer

parents b375979a b0ae412d
...@@ -65,7 +65,7 @@ public class IndexDescDTO implements Serializable { ...@@ -65,7 +65,7 @@ public class IndexDescDTO implements Serializable {
private Integer indexId; private Integer indexId;
private String remark; private String remark;
private Integer seq; private Integer seq = 0;
public Integer getIndexDescId() { public Integer getIndexDescId() {
return indexDescId; return indexDescId;
......
...@@ -60,6 +60,11 @@ public class IndexController { ...@@ -60,6 +60,11 @@ public class IndexController {
DateTypeQo dateTypeQo, String mbrAreaId, Integer dataType){ DateTypeQo dateTypeQo, String mbrAreaId, Integer dataType){
List<Integer> list = this.storeSearchUtils.storeSearch(userId, enterpriseId, searchJson); List<Integer> list = this.storeSearchUtils.storeSearch(userId, enterpriseId, searchJson);
List<String> onLine = this.storeSearchUtils.onLineStoreSearch(userId, enterpriseId, searchJson); List<String> onLine = this.storeSearchUtils.onLineStoreSearch(userId, enterpriseId, searchJson);
boolean wgs = storeSearchUtils.isWgs(userId, enterpriseId, searchJson) == 1;
if(wgs){
list.add(-1);
onLine.add("-1");
}
ServiceResponse<IndexSalesDTO> indexSales = this.indexSalesApiService.getIndexSales(enterpriseId, list, onLine, ServiceResponse<IndexSalesDTO> indexSales = this.indexSalesApiService.getIndexSales(enterpriseId, list, onLine,
StringUtils.isNoneBlank(mbrAreaId) ? Long.valueOf(mbrAreaId) : null, dateTypeQo.getType(), dateTypeQo.getDate(), dataType); StringUtils.isNoneBlank(mbrAreaId) ? Long.valueOf(mbrAreaId) : null, dateTypeQo.getType(), dateTypeQo.getDate(), dataType);
return RestResponse.success(EntityUtil.changeEntityByJSON(IndexSalesVo.class, indexSales.getResult())); return RestResponse.success(EntityUtil.changeEntityByJSON(IndexSalesVo.class, indexSales.getResult()));
...@@ -70,6 +75,11 @@ public class IndexController { ...@@ -70,6 +75,11 @@ public class IndexController {
DateTypeQo dateTypeQo, String mbrAreaId){ DateTypeQo dateTypeQo, String mbrAreaId){
List<Integer> list = this.storeSearchUtils.storeSearch(userId, enterpriseId, searchJson); List<Integer> list = this.storeSearchUtils.storeSearch(userId, enterpriseId, searchJson);
List<String> onLine = this.storeSearchUtils.onLineStoreSearch(userId, enterpriseId, searchJson); List<String> onLine = this.storeSearchUtils.onLineStoreSearch(userId, enterpriseId, searchJson);
boolean wgs = storeSearchUtils.isWgs(userId, enterpriseId, searchJson) == 1;
if(wgs){
list.add(-1);
onLine.add("-1");
}
List<Long> mbrAreaIdList = this.dataAuthUtils.getMbrAreaId(userId, enterpriseId); List<Long> mbrAreaIdList = this.dataAuthUtils.getMbrAreaId(userId, enterpriseId);
ServiceResponse<IndexMemberDTO> indexMember = this.indexSalesApiService.getIndexMember(enterpriseId, list, onLine, ServiceResponse<IndexMemberDTO> indexMember = this.indexSalesApiService.getIndexMember(enterpriseId, list, onLine,
StringUtils.isNoneBlank(mbrAreaId) ? Long.valueOf(mbrAreaId) : null, StringUtils.isNoneBlank(mbrAreaId) ? Long.valueOf(mbrAreaId) : null,
...@@ -82,6 +92,11 @@ public class IndexController { ...@@ -82,6 +92,11 @@ public class IndexController {
DateTypeQo dateTypeQo, String mbrAreaId){ DateTypeQo dateTypeQo, String mbrAreaId){
List<Integer> list = this.storeSearchUtils.storeSearch(userId, enterpriseId, searchJson); List<Integer> list = this.storeSearchUtils.storeSearch(userId, enterpriseId, searchJson);
List<String> onLine = this.storeSearchUtils.onLineStoreSearch(userId, enterpriseId, searchJson); List<String> onLine = this.storeSearchUtils.onLineStoreSearch(userId, enterpriseId, searchJson);
boolean wgs = storeSearchUtils.isWgs(userId, enterpriseId, searchJson) == 1;
if(wgs){
list.add(-1);
onLine.add("-1");
}
List<Long> mbrAreaIdList = this.dataAuthUtils.getMbrAreaId(userId, enterpriseId); List<Long> mbrAreaIdList = this.dataAuthUtils.getMbrAreaId(userId, enterpriseId);
ServiceResponse<IndexMemberOrderCntDTO> response1 = this.indexSalesApiService.getIndexMemberOrderCnt(enterpriseId, list, onLine, ServiceResponse<IndexMemberOrderCntDTO> response1 = this.indexSalesApiService.getIndexMemberOrderCnt(enterpriseId, list, onLine,
StringUtils.isNoneBlank(mbrAreaId) ? Long.valueOf(mbrAreaId) : null, StringUtils.isNoneBlank(mbrAreaId) ? Long.valueOf(mbrAreaId) : null,
......
...@@ -92,9 +92,10 @@ public class StoreSearchUtils { ...@@ -92,9 +92,10 @@ public class StoreSearchUtils {
List<Integer> tempStoreIdList = new ArrayList<>(); List<Integer> tempStoreIdList = new ArrayList<>();
if(tempStoreConditionDTO != null) { if(tempStoreConditionDTO != null) {
Integer tempStoreId = tempStoreConditionDTO.getStoreWidgetId(); Integer tempStoreId = tempStoreConditionDTO.getStoreWidgetId();
tempStoreIdList = this.storeWidgetApiService.listStoreInfoIdByStoreWidgetId(enterpriseId, tempStoreId).getResult(); tempStoreIdList = this.storeWidgetApiService.listStoreIdByStoreWidgetId(enterpriseId, tempStoreId).getResult();
} }
final List<Integer> tempStoreIdListf = tempStoreIdList; final List<Integer> tempStoreIdListf = tempStoreIdList;
log.info("tempStoreIdList:{}", JSON.toJSONString(tempStoreIdListf));
if(StringUtils.isNotBlank(searchJson)){ if(StringUtils.isNotBlank(searchJson)){
JSONObject json = JSON.parseObject(searchJson); JSONObject json = JSON.parseObject(searchJson);
StoreSearchQo storeSearchQo = json.getObject(StoreChannelEnum.OFFLINE.getChannel().toString(), StoreSearchQo.class); StoreSearchQo storeSearchQo = json.getObject(StoreChannelEnum.OFFLINE.getChannel().toString(), StoreSearchQo.class);
......
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