|
@@ -214,7 +214,8 @@ public class StoreInfoController {
|
|
@ApiImplicitParam(name = "businessSection", value = "经营板块", dataType = "String", paramType = "query"),
|
|
@ApiImplicitParam(name = "businessSection", value = "经营板块", dataType = "String", paramType = "query"),
|
|
@ApiImplicitParam(name = "storeApplicationStatus", value = "门店审核状态", dataType = "String", paramType = "query"),
|
|
@ApiImplicitParam(name = "storeApplicationStatus", value = "门店审核状态", dataType = "String", paramType = "query"),
|
|
@ApiImplicitParam(name = "jingdu", value = "jingdu", dataType = "String", paramType = "query"),
|
|
@ApiImplicitParam(name = "jingdu", value = "jingdu", dataType = "String", paramType = "query"),
|
|
- @ApiImplicitParam(name = "weidu", value = "weidu", dataType = "String", paramType = "query")
|
|
|
|
|
|
+ @ApiImplicitParam(name = "weidu", value = "weidu", dataType = "String", paramType = "query"),
|
|
|
|
+ @ApiImplicitParam(name = "renewContractStatus", value = "门店续签合同状态", dataType = "String", paramType = "query")
|
|
})
|
|
})
|
|
@GetMapping("/getStorePage")
|
|
@GetMapping("/getStorePage")
|
|
public R<IPage<StoreInfoVo>> getStoresPage(
|
|
public R<IPage<StoreInfoVo>> getStoresPage(
|
|
@@ -230,10 +231,11 @@ public class StoreInfoController {
|
|
@RequestParam(required = false) String businessSection,
|
|
@RequestParam(required = false) String businessSection,
|
|
@RequestParam(required = false) String storeStatus,
|
|
@RequestParam(required = false) String storeStatus,
|
|
@RequestParam(required = false) String jingdu,
|
|
@RequestParam(required = false) String jingdu,
|
|
- @RequestParam(required = false) String weidu) {
|
|
|
|
- log.info("StoreInfoController.getStoresPage?pageNum={},pageSize={},storeName={},storeContact={},id={},storePhone={},storeType={},expiredState={},storeApplicationStatus={},storeStatus={},businessSection={},jingdu={},weidu={}",
|
|
|
|
- pageNum, pageSize, storeName, storeContact, id, storePhone, storeType, expiredState, storeApplicationStatus, storeStatus, businessSection, jingdu, weidu);
|
|
|
|
- return R.data(storeInfoService.getStorePage(pageNum, pageSize, storeName, storeContact, id, storePhone, storeType, expiredState, storeApplicationStatus, storeStatus, businessSection, jingdu, weidu));
|
|
|
|
|
|
+ @RequestParam(required = false) String weidu,
|
|
|
|
+ @RequestParam(required = false) String renewContractStatus) {
|
|
|
|
+ log.info("StoreInfoController.getStoresPage?pageNum={},pageSize={},storeName={},storeContact={},id={},storePhone={},storeType={},expiredState={},storeApplicationStatus={},storeStatus={},businessSection={},jingdu={},weidu={},renewContractStatus={}",
|
|
|
|
+ pageNum, pageSize, storeName, storeContact, id, storePhone, storeType, expiredState, storeApplicationStatus, storeStatus, businessSection, jingdu, weidu, renewContractStatus);
|
|
|
|
+ return R.data(storeInfoService.getStorePage(pageNum, pageSize, storeName, storeContact, id, storePhone, storeType, expiredState, storeApplicationStatus, storeStatus, businessSection, jingdu, weidu, renewContractStatus));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -566,20 +568,14 @@ public class StoreInfoController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "门店装修-审核续签合同状态")
|
|
@ApiOperation(value = "门店装修-审核续签合同状态")
|
|
- @ApiImplicitParams({
|
|
|
|
- @ApiImplicitParam(name = "id", value = "门店id", dataType = "int"),
|
|
|
|
- @ApiImplicitParam(name = "contractReason", value = "审核拒绝原因", dataType = "String"),
|
|
|
|
- @ApiImplicitParam(name = "renewContractStatus", value = "审核续签合同状态", dataType = "int"),
|
|
|
|
- })
|
|
|
|
@PostMapping("/updateContractImageStatus")
|
|
@PostMapping("/updateContractImageStatus")
|
|
- public R<String> updateContractImageStatus(int id, String contractReason, int renewContractStatus) {
|
|
|
|
- log.info("StoreInfoController.updateContractImageStatus?id={}&contractReason={}&renewContractStatus{}", id, contractReason, renewContractStatus);
|
|
|
|
- StoreInfo storeInfo = storeInfoService.getOne(new LambdaQueryWrapper<StoreInfo>().eq(StoreInfo::getId, id));
|
|
|
|
|
|
+ public R<String> updateContractImageStatus(@RequestBody StoreInfoDto storeInfoDto) {
|
|
|
|
+ log.info("StoreInfoController.updateContractImageStatus?storeInfoDto={}", storeInfoDto);
|
|
|
|
+ StoreInfo storeInfo = storeInfoService.getOne(new LambdaQueryWrapper<StoreInfo>().eq(StoreInfo::getId, storeInfoDto.getId()));
|
|
if (storeInfo != null) {
|
|
if (storeInfo != null) {
|
|
- if (renewContractStatus == 3) {
|
|
|
|
- storeInfo.setContractReason(contractReason);
|
|
|
|
- storeInfo.setRenewContractStatus(renewContractStatus);
|
|
|
|
- storeInfo.setContractReason(contractReason);
|
|
|
|
|
|
+ if (storeInfoDto.getRenewContractStatus() == 3) {
|
|
|
|
+ storeInfo.setContractReason(storeInfoDto.getContractReason());
|
|
|
|
+ storeInfo.setRenewContractStatus(storeInfoDto.getRenewContractStatus());
|
|
boolean flag = storeInfoService.updateById(storeInfo);
|
|
boolean flag = storeInfoService.updateById(storeInfo);
|
|
if (flag) {
|
|
if (flag) {
|
|
return R.success("拒绝审核成功");
|
|
return R.success("拒绝审核成功");
|
|
@@ -587,12 +583,12 @@ public class StoreInfoController {
|
|
return R.fail("拒绝审核失败");
|
|
return R.fail("拒绝审核失败");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- storeInfo.setRenewContractStatus(renewContractStatus);
|
|
|
|
- storeInfo.setContractReason(contractReason);
|
|
|
|
|
|
+ storeInfo.setRenewContractStatus(storeInfoDto.getRenewContractStatus());
|
|
|
|
+ storeInfo.setContractReason(storeInfoDto.getContractReason());
|
|
boolean flag = storeInfoService.updateById(storeInfo);
|
|
boolean flag = storeInfoService.updateById(storeInfo);
|
|
if (flag) {
|
|
if (flag) {
|
|
//审核通过后删除原店铺合同 续签合同类型变为合同
|
|
//审核通过后删除原店铺合同 续签合同类型变为合同
|
|
- int num = storeInfoService.conversionContract(id);
|
|
|
|
|
|
+ int num = storeInfoService.conversionContract(storeInfoDto.getId());
|
|
if (num > 0) {
|
|
if (num > 0) {
|
|
return R.success("审核通过成功");
|
|
return R.success("审核通过成功");
|
|
} else {
|
|
} else {
|
|
@@ -601,6 +597,6 @@ public class StoreInfoController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return R.fail("审核失败 店铺不存在");
|
|
return R.fail("审核失败 店铺不存在");
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|