Commit cffbd632 by 陶光胜

门店日志接口

parent 9473b396
......@@ -102,6 +102,7 @@
<artifactId>gic-bizdict-api</artifactId>
<version>${gic-bizdict-api}</version>
</dependency>
</dependencies>
<build>
......
......@@ -8,6 +8,8 @@ import com.gic.commons.util.GlobalInfo;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.error.ErrorCode;
import com.gic.enterprise.response.EnterpriseRestResponse;
import com.gic.log.api.dto.GicLogInterfaceDTO;
import com.gic.log.api.service.LogApiService;
import com.gic.redis.data.util.RedisUtil;
import com.gic.store.constant.CreateTypeEnum;
import com.gic.store.dto.*;
......@@ -45,6 +47,8 @@ public class StoreController {
private StoreApiService storeApiService;
@Autowired
private StoreDictApiService storeDictApiService;
@Autowired
private LogApiService logApiService;
@RequestMapping("/save-store")
public RestResponse saveOrUpdate(StoreQO storeQO) {
......@@ -95,7 +99,6 @@ public class StoreController {
}
@RequestMapping("store-list-source")
@ResponseBody
public RestResponse storeListSource(){
Integer enterpriseId = 1111;
List<StoreListSourceVO> list = this.getStoreAllListSource(enterpriseId);
......@@ -115,7 +118,6 @@ public class StoreController {
}
@RequestMapping("store-list-source-set")
@ResponseBody
public RestResponse storeListSourceSet(String sources){
if(StringUtils.isBlank(sources)){
return EnterpriseRestResponse.failure(ErrorCode.ERR_2);
......@@ -126,6 +128,17 @@ public class StoreController {
return RestResponse.success();
}
@RequestMapping("list-store-log")
public RestResponse listStoreLog(Integer storeId, PageQO pageQO){
Page page = new Page(pageQO.getCurrentPage(), pageQO.getPageSize());
ServiceResponse<Page<GicLogInterfaceDTO>> response = this.logApiService.listLogInterface(page);
if(response.isSuccess()){
return RestResponse.success(response.getResult());
}
return EnterpriseRestResponse.failure(response);
}
private List<StoreListSourceVO> getStoreAllListSource(Integer enterpriseId){
List<StoreListSourceVO> list = new ArrayList<>();
ServiceResponse<List<StoreDictDTO>> serviceResponse = this.storeDictApiService.listStoreField(enterpriseId);
......
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