|
|
@@ -80,7 +80,7 @@ func (h *DingHandler) handleBpmsInstanceChange(msg *message.MixMessage, ctx *din
|
|
|
// 处理实例数据(不需要钉钉审批实例参数)
|
|
|
switch instance.BizType {
|
|
|
case model.CustomerReceive:
|
|
|
- if msg.ProcessType == "finish" {
|
|
|
+ if msg.ProcessType == "finish" || msg.ProcessType == "terminate" {
|
|
|
srv, err := custServer.NewCustomerService(ctx.SubsMessage.Ctx)
|
|
|
if err != nil {
|
|
|
glog.Error(err)
|
|
|
@@ -94,12 +94,12 @@ func (h *DingHandler) handleBpmsInstanceChange(msg *message.MixMessage, ctx *din
|
|
|
}
|
|
|
return "success"
|
|
|
case model.ProjectCreate:
|
|
|
- if msg.ProcessType == "finish" {
|
|
|
+ if msg.ProcessType == "finish" || msg.ProcessType == "terminate" {
|
|
|
//srv.Handle(instance, msg)
|
|
|
}
|
|
|
return "success"
|
|
|
case model.ContractCreate:
|
|
|
- if msg.ProcessType == "finish" {
|
|
|
+ if msg.ProcessType == "finish" || msg.ProcessType == "terminate" {
|
|
|
//srv.Handle(instance, msg)
|
|
|
}
|
|
|
return "success"
|
|
|
@@ -118,7 +118,7 @@ func (h *DingHandler) handleBpmsInstanceChange(msg *message.MixMessage, ctx *din
|
|
|
////按照类型处理数据(不需要钉钉审批实例参数)
|
|
|
//switch instance.BizType {
|
|
|
//case model.CustomerReceive:
|
|
|
- // if msg.ProcessType == "finish" {
|
|
|
+ // if msg.ProcessType == "finish" || msg.ProcessType == "terminate" {
|
|
|
// //srv.Handle(instance, msg, resp)
|
|
|
// }
|
|
|
|