Merge remote-tracking branch 'xfsg/cc_partner_init' into cc_partner_init
This commit is contained in:
@@ -57,7 +57,7 @@ public class SignValidateFilter implements Filter {
|
||||
"/**/swagger*/**",
|
||||
"/**/webjars/**",
|
||||
"/xfsg/mini/program/v1/partnerManage/openArea/areaApplyQuery",
|
||||
// "/xfsg/mini/**",
|
||||
"/xfsg/mini/**",
|
||||
"/xfsg/*/api/audit/result"
|
||||
|
||||
);
|
||||
|
||||
@@ -87,7 +87,7 @@ public class TokenValidateFilter implements Filter {
|
||||
String userStr = "";
|
||||
LoginUserInfo currentUser = null;
|
||||
boolean isInWhiteList = excludePath(uri);
|
||||
String accessToken = "1d1c34451b51e7180445b74c49b7ab09";//reqs.getHeader("accessToken");
|
||||
String accessToken = reqs.getHeader("accessToken");
|
||||
String key = MessageFormat.format(CommonConstants.ACCESS_TOKEN_KEY, accessToken);
|
||||
if(StringUtils.isNotBlank(accessToken)){
|
||||
userStr = redisUtilPool.getString(key);
|
||||
|
||||
@@ -30,12 +30,12 @@ public class KdzApiController {
|
||||
public ResponseResult<Boolean> auditResult(@PathVariable(value = "enterprise-id") String eid,
|
||||
@RequestBody XfsgOpenApiRequest request) {
|
||||
log.info("auditResult requestBody :{}", JSONObject.toJSONString(request));
|
||||
// if(!verifyMD5(request,eid)){
|
||||
// return ResponseResult.fail(ErrorCodeEnum.PARAMS_VALIDATE_ERROR);
|
||||
// }
|
||||
// if(eid == null || request.getBizContent() == null){
|
||||
// return ResponseResult.fail(ErrorCodeEnum.PARAMS_VALIDATE_ERROR);
|
||||
// }
|
||||
if(!verifyMD5(request,eid)){
|
||||
return ResponseResult.fail(ErrorCodeEnum.PARAMS_VALIDATE_ERROR);
|
||||
}
|
||||
if(eid == null || request.getBizContent() == null){
|
||||
return ResponseResult.fail(ErrorCodeEnum.PARAMS_VALIDATE_ERROR);
|
||||
}
|
||||
AuditResultRequest auditResultRequest = JSONObject.parseObject(request.getBizContent(), AuditResultRequest.class);
|
||||
return ResponseResult.success(kdzApiService.auditResult(auditResultRequest));
|
||||
}
|
||||
|
||||
@@ -1,20 +1,49 @@
|
||||
package com.cool.store.job;
|
||||
|
||||
import com.cool.store.entity.LeaseBaseInfoDO;
|
||||
import com.cool.store.enums.WorkflowSubStageStatusEnum;
|
||||
import com.cool.store.mapper.LineInfoMapper;
|
||||
import com.cool.store.mapper.TrainingExperienceMapper;
|
||||
import com.xxl.job.core.context.XxlJobHelper;
|
||||
import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class XxlJobHandler {
|
||||
|
||||
|
||||
@XxlJob("A")
|
||||
public void A(){
|
||||
@Resource
|
||||
TrainingExperienceMapper trainingExperienceMapper;
|
||||
|
||||
@Resource
|
||||
LineInfoMapper lineInfoMapper;
|
||||
|
||||
log.info("A结束");
|
||||
/**
|
||||
* 每天都将待体验门店信息变更到体验中
|
||||
*/
|
||||
@XxlJob("updateStoreExperience")
|
||||
public void updateStoreExperience() {
|
||||
log.info("------实训体验状态变更------");
|
||||
String param = XxlJobHelper.getJobParam();
|
||||
String enterpriseId = param;
|
||||
//查出数据并更新为体验中
|
||||
List<LeaseBaseInfoDO> leaseBaseInfoDOS = trainingExperienceMapper.selectESTime();
|
||||
if (CollectionUtils.isEmpty(leaseBaseInfoDOS)) {
|
||||
log.info("------今日没有待更新数据------");
|
||||
return;
|
||||
}
|
||||
//线索ids
|
||||
List<Long> lineIds = leaseBaseInfoDOS.stream().map(LeaseBaseInfoDO::getLineId).collect(Collectors.toList());
|
||||
WorkflowSubStageStatusEnum storeExperience90 = WorkflowSubStageStatusEnum.STORE_EXPERIENCE_90;
|
||||
lineInfoMapper.toExperiencing(lineIds, storeExperience90.getCode());
|
||||
log.info("------实训体验状态变更结束------");
|
||||
XxlJobHelper.handleSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user