Commit 8a829775 by zhiwj

日志

parent c48e4939
......@@ -34,6 +34,7 @@ import com.gic.store.web.vo.StoreListSourceVO;
import com.gic.store.web.vo.StoreOverflowVO;
import com.gic.wechat.business.api.service.fwh.WeixinBaseFunService;
import com.gic.wechat.business.api.service.wxa.WeixinWxaFunService;
import com.google.common.base.Joiner;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
......@@ -302,15 +303,19 @@ public class StoreController extends DownloadUtils {
}
ServiceResponse response = this.storeApiService.bulkUpdateStore(storeIds, value, enterpriseId, type, UserDetailUtils.getUserDetail().getUserId(), UserDetailUtils.getUserDetail().getUserInfo().getUserName());
if (response.isSuccess()) {
String[] storeArr = storeIds.split(",");
StoreSearchDTO storeSearchDTO = new StoreSearchDTO();
List<StoreDTO> storeList = this.storeApiService.listStore(storeSearchDTO, 1, 3).getResult().getResult();
if (CollectionUtils.isNotEmpty(storeList)) {
String storeName = storeList.stream().map(StoreDTO::getStoreName).reduce((x, y) -> x + "," + y).get();
String[] storeArr = storeIds.split(",");
if (storeArr.length > 3) {
storeName += "等" + storeArr.length + "家门店";
storeSearchDTO.setStoreIds(Joiner.on(" ").join(storeArr));
Page<StoreDTO> page = this.storeApiService.listStore(storeSearchDTO, 1, 3).getResult();
if (page != null && CollectionUtils.isNotEmpty(page.getResult())) {
List<StoreDTO> storeList = page.getResult();
if (CollectionUtils.isNotEmpty(storeList)) {
String storeName = storeList.stream().map(StoreDTO::getStoreName).reduce((x, y) -> x + "," + y).get();
if (storeArr.length > 3) {
storeName += "等" + storeArr.length + "家门店";
}
LogUtils.createLog(type == 1 ? "修改启用状态" : "批量编辑", storeName);
}
LogUtils.createLog(type == 1 ? "修改启用状态" : "批量编辑", storeName);
}
return RestResponse.success();
}
......
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