|
@ -1,5 +1,7 @@ |
|
|
package com.qs.serve.modules.tbs.service.impl; |
|
|
package com.qs.serve.modules.tbs.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
@ -698,6 +700,16 @@ public class TbsCostApplyServiceImpl extends ServiceImpl<TbsCostApplyMapper,TbsC |
|
|
if(flowId!=null&&flowId.length()>45){ |
|
|
if(flowId!=null&&flowId.length()>45){ |
|
|
flowId = flowId.substring(0,40); |
|
|
flowId = flowId.substring(0,40); |
|
|
} |
|
|
} |
|
|
|
|
|
// 协议类发起
|
|
|
|
|
|
if(tbsCostApply.getContractFlag().equals(1)){ |
|
|
|
|
|
if(flowIdResult.getMsg()!=null && flowIdResult.getMsg().length()>45){ |
|
|
|
|
|
log.error(flowIdResult.getMsg()); |
|
|
|
|
|
JSONObject object = JSON.parseObject(flowIdResult.getMsg()); |
|
|
|
|
|
if(!object.get("code").toString().equals("0")){ |
|
|
|
|
|
Assert.throwEx("流程发起被拦截了"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
String formId = null; |
|
|
String formId = null; |
|
|
R<String> formIdResult = seeYonService.getFormId(templateCode,tbsCostApply.getId()); |
|
|
R<String> formIdResult = seeYonService.getFormId(templateCode,tbsCostApply.getId()); |
|
|
if(formIdResult.getStatus()==200){ |
|
|
if(formIdResult.getStatus()==200){ |
|
@ -915,7 +927,8 @@ public class TbsCostApplyServiceImpl extends ServiceImpl<TbsCostApplyMapper,TbsC |
|
|
data.put("cmsLink",baseJumpUrl); |
|
|
data.put("cmsLink",baseJumpUrl); |
|
|
|
|
|
|
|
|
data.put("rowDate",DateUtils.format(LocalDateTime.now(), DateFormatString.DATE_TIME)); |
|
|
data.put("rowDate",DateUtils.format(LocalDateTime.now(), DateFormatString.DATE_TIME)); |
|
|
data.put("rowState","03"); |
|
|
//初始化00
|
|
|
|
|
|
data.put("rowState","00"); |
|
|
|
|
|
|
|
|
//拓展添加审批关联区域
|
|
|
//拓展添加审批关联区域
|
|
|
String saleRegionId = supplier.handleSaleRegionId(); |
|
|
String saleRegionId = supplier.handleSaleRegionId(); |
|
|