Commit f48620e9 authored by chenyuxi's avatar chenyuxi

feat: 不购买审核相关

parent 059462d6
......@@ -147,8 +147,9 @@ public interface SecurityConstants {
* @Description: 企业微信发送消息授权路径
* @return:
* 下面链接中的state参数是和前端进行交互区分的重要参数,如果新增,请不要和以前的前缀相同
* 1,2,3,4 前缀为合同审批待处理、抄送和垫付审批中的待处理、抄送。 5 前缀为突发事件待处理页面的标识
* 1=垫付审批待处理,2=垫付审批抄送,3=合同审批待处理,4=合同审批抄送,5=事件审批待处理
* 第一位标识消息类型:0审批,1抄送
* 第二位标识实体标识:1不购买商险申请
* 01 : 不购买商险申请审批
**/
String WX_GET_MESSAGE_AUTH_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=%s&redirect_uri=%s&response_type=code&scope=snsapi_base&state=%s#wechat_redirect";
......
......@@ -29,6 +29,7 @@ public class ProcessDaprUtils {
* @since mvp1.7.5
**/
public R<ProcessVo> getProcessVoByType(String processType) {
log.error("流程类型>>processType>>{}",processType);
R<ProcessVo> processVoR = HttpDaprUtil.invokeMethodPost(daprProcessProperties.getAppUrl(),daprProcessProperties.getAppId(),"/tprocess/inner/getProcessVoByType", processType, ProcessVo.class, SecurityConstants.FROM_IN);
if (Common.isEmpty(processVoR)){
return R.failed("根据流程类型查询ProcessVo失败!");
......
......@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
......@@ -68,6 +69,7 @@ public class TNodeRoute extends Model<TNodeRoute> {
private String createUser;
@Schema(description = "创建时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
private LocalDateTime createDate;
@Length(max = 255, message = "更新人不能超过255个字符")
......
......@@ -17,6 +17,7 @@ import com.yifu.cloud.plus.v1.yifu.common.security.util.SecurityUtils;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
......@@ -33,6 +34,7 @@ import java.time.LocalDateTime;
@RequiredArgsConstructor
@RequestMapping("/tprocess")
@Tag(name = "主流程表")
@Log4j2
public class TProcessController {
@Resource
......@@ -96,7 +98,7 @@ public class TProcessController {
**/
@PostMapping("/inner/getProcessVoByType")
@Inner
public ProcessVo getProcessVoByType(String processType) {
public ProcessVo getProcessVoByType(@RequestBody String processType) {
return tProcessService.getProcessVoByType(processType);
}
......@@ -108,7 +110,7 @@ public class TProcessController {
**/
@PostMapping("/inner/getProcessVoByProcessId")
@Inner
public ProcessVo getProcessVoByProcessId(String processId) {
public ProcessVo getProcessVoByProcessId(@RequestBody String processId) {
return tProcessService.getProcessVoById(processId);
}
......
......@@ -45,9 +45,6 @@ public class TAuditNodeProcess extends BaseEntity {
@Schema(description = "节点类型")
private String nodeType;
@Schema(description = "创建时间")
private LocalDateTime createTime;
@Length(max = 32, message = "实体id不能超过32个字符")
@Schema(description = "实体id")
private String domainId;
......
......@@ -210,7 +210,7 @@ public class TInsuranceUnpurchaseApplyAuditProcess extends AbastractAuditProcess
Map<String, Object> textcard = new HashMap<>();
authUrl = String.format(SecurityConstants.WX_GET_MESSAGE_AUTH_URL, wxConfig.getCorpid(), wxConfig.getAuthUrl(), CommonConstants.SIX_STRING + insuranceUnpurchaseApply.getId());
authUrl = String.format(SecurityConstants.WX_GET_MESSAGE_AUTH_URL, wxConfig.getCorpid(), wxConfig.getAuthUrl(), "01"+insuranceUnpurchaseApply.getId());
textcard.put("title", "含风险项目不购买商险申请");
textcard.put("url", authUrl);
......
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