parent
7c9e441b84
commit
a7d4a94372
|
@ -143,6 +143,17 @@ public class XgfUserController extends BaseController {
|
|||
return response;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/getWorkTask")
|
||||
@ResponseBody
|
||||
public Object getWorkTask() throws Exception{
|
||||
PageData request = this.getPageData();
|
||||
PageData response = new PageData();
|
||||
response.put("result", "success");
|
||||
response.put("list",xgfUserService.getWorkTask(request));
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 人员指定审核
|
||||
*/
|
||||
|
|
|
@ -70,6 +70,7 @@ public class GuFenCharge extends NodeSwitchComponent {
|
|||
flows.put("APPOINT_ZERO_TIME", DateUtil.getTime());
|
||||
flows.put("APPOINT_ZERO_STATUS", info.getSTATUS());
|
||||
flows.put("APPOINT_ZERO_OPINION", info.getOPINION());
|
||||
flows.put("OPINION",info.getOPINION());
|
||||
if ("0".equals(info.getSTATUS())) {
|
||||
// 打回至相关方端
|
||||
xgfUserService.repulse(flows);
|
||||
|
|
|
@ -61,6 +61,7 @@ public class GuFenSupervise extends NodeComponent {
|
|||
flows.put("APPOINT_ONE_TIME", DateUtil.getTime());
|
||||
flows.put("APPOINT_ONE_STATUS", info.getSTATUS());
|
||||
flows.put("APPOINT_ONE_OPINION", info.getOPINION());
|
||||
flows.put("OPINION",info.getOPINION());
|
||||
if ("0".equals(info.getSTATUS())) {
|
||||
// 打回至相关方端
|
||||
xgfUserService.repulse(flows);
|
||||
|
|
|
@ -67,6 +67,7 @@ public class GuFenWeiTuoCharge extends NodeComponent {
|
|||
flows.put("APPOINT_ONE_TIME", DateUtil.getTime());
|
||||
flows.put("APPOINT_ONE_STATUS", info.getSTATUS());
|
||||
flows.put("APPOINT_ONE_OPINION", info.getOPINION());
|
||||
flows.put("OPINION",info.getOPINION());
|
||||
|
||||
if ("0".equals(info.getSTATUS())) {
|
||||
// 打回至相关方端
|
||||
|
|
|
@ -66,6 +66,7 @@ public class GuFenWeiTuoSupervise extends NodeComponent {
|
|||
flows.put("APPOINT_TWO_TIME", DateUtil.getTime());
|
||||
flows.put("APPOINT_TWO_STATUS", info.getSTATUS());
|
||||
flows.put("APPOINT_TWO_OPINION", info.getOPINION());
|
||||
flows.put("OPINION",info.getOPINION());
|
||||
if ("0".equals(info.getSTATUS())) {
|
||||
// 打回至相关方端
|
||||
xgfUserService.repulse(flows);
|
||||
|
|
|
@ -15,13 +15,13 @@ public class InitCompany extends NodeSwitchComponent {
|
|||
// 0-一般单位处理流程
|
||||
// 1-集团单位处理流程
|
||||
// 2-股份端单位处理流程
|
||||
if ("0".equals(info.getFLOWS_STEP())) {
|
||||
if ("0".equals(info.getFLOWS_TYPE())) {
|
||||
return "YiBan";
|
||||
}
|
||||
if ("1".equals(info.getFLOWS_STEP())){
|
||||
if ("1".equals(info.getFLOWS_TYPE())){
|
||||
return "JiTuan";
|
||||
}
|
||||
if ("2".equals(info.getFLOWS_STEP())){
|
||||
if ("2".equals(info.getFLOWS_TYPE())){
|
||||
return "GuFen";
|
||||
}
|
||||
throw new RuntimeException("系统异常,请联系管理员");
|
||||
|
|
|
@ -73,6 +73,7 @@ public class JiTuanCharge extends NodeSwitchComponent {
|
|||
flows.put("APPOINT_ONE_TIME", DateUtil.getTime());
|
||||
flows.put("APPOINT_ONE_STATUS", info.getSTATUS());
|
||||
flows.put("APPOINT_ONE_OPINION", info.getOPINION());
|
||||
flows.put("OPINION",info.getOPINION());
|
||||
if ("0".equals(info.getSTATUS())) {
|
||||
// 打回至相关方端
|
||||
xgfUserService.repulse(flows);
|
||||
|
|
|
@ -60,6 +60,7 @@ public class JiTuanSupervise extends NodeComponent {
|
|||
flows.put("APPOINT_TWO_TIME", DateUtil.getTime());
|
||||
flows.put("APPOINT_TWO_STATUS", info.getSTATUS());
|
||||
flows.put("APPOINT_TWO_OPINION", info.getOPINION());
|
||||
flows.put("OPINION",info.getOPINION());
|
||||
if ("0".equals(info.getSTATUS())) {
|
||||
// 打回至相关方端
|
||||
xgfUserService.repulse(flows);
|
||||
|
|
|
@ -65,6 +65,7 @@ public class JiTuanWeiTuoCharge extends NodeComponent {
|
|||
flows.put("APPOINT_TWO_TIME", DateUtil.getTime());
|
||||
flows.put("APPOINT_TWO_STATUS", info.getSTATUS());
|
||||
flows.put("APPOINT_TWO_OPINION", info.getOPINION());
|
||||
flows.put("OPINION",info.getOPINION());
|
||||
|
||||
if ("0".equals(info.getSTATUS())) {
|
||||
// 打回至相关方端
|
||||
|
|
|
@ -65,6 +65,7 @@ public class JiTuanWeiTuoSupervise extends NodeComponent {
|
|||
flows.put("APPOINT_THREE_TIME", DateUtil.getTime());
|
||||
flows.put("APPOINT_THREE_STATUS", info.getSTATUS());
|
||||
flows.put("APPOINT_THREE_OPINION", info.getOPINION());
|
||||
flows.put("OPINION",info.getOPINION());
|
||||
if ("0".equals(info.getSTATUS())) {
|
||||
// 打回至相关方端
|
||||
xgfUserService.repulse(flows);
|
||||
|
|
|
@ -60,6 +60,7 @@ public class YiBanCharge extends NodeComponent {
|
|||
flows.put("APPOINT_ZERO_TIME", DateUtil.getTime());
|
||||
flows.put("APPOINT_ZERO_STATUS", info.getSTATUS());
|
||||
flows.put("APPOINT_ZERO_OPINION", info.getOPINION());
|
||||
flows.put("OPINION",info.getOPINION());
|
||||
if ("0".equals(info.getSTATUS())) {
|
||||
// 打回至相关方端
|
||||
xgfUserService.repulse(flows);
|
||||
|
|
|
@ -33,8 +33,18 @@ public class YiBanSupervise extends NodeComponent {
|
|||
@Override
|
||||
public void process() throws Exception {
|
||||
System.out.println("YiBanSupervise节点");
|
||||
|
||||
XgfFlowDto info = this.getRequestData();
|
||||
|
||||
// 如果指针没有数据,赋值后自动结束
|
||||
if (StringUtils.isBlank(info.getIterator())) {
|
||||
info.setIterator("1");
|
||||
return;
|
||||
}
|
||||
// 如果不是当前流程,进入下一流程判断
|
||||
if (!"1".equals(info.getIterator())) {
|
||||
return;
|
||||
}
|
||||
|
||||
PageData condition = new PageData();
|
||||
|
||||
condition.put("FLOWS_ID", info.getFLOWS_ID());
|
||||
|
@ -62,6 +72,7 @@ public class YiBanSupervise extends NodeComponent {
|
|||
flows.put("APPOINT_ONE_TIME", DateUtil.getTime());
|
||||
flows.put("APPOINT_ONE_STATUS", info.getSTATUS());
|
||||
flows.put("APPOINT_ONE_OPINION", info.getOPINION());
|
||||
flows.put("OPINION",info.getOPINION());
|
||||
if ("0".equals(info.getSTATUS())) {
|
||||
// 打回至相关方端
|
||||
xgfUserService.repulse(flows);
|
||||
|
|
|
@ -14,6 +14,8 @@ public class XgfFlowDto {
|
|||
// 步骤编码
|
||||
public String FLOWS_STEP;
|
||||
|
||||
public String FLOWS_TYPE;
|
||||
|
||||
// 审批结果0-不通过,1-通过
|
||||
private String STATUS;
|
||||
|
||||
|
|
|
@ -72,4 +72,6 @@ public interface XgfUserMapper {
|
|||
List<PageData> findRecordList(PageData condition);
|
||||
|
||||
List<PageData> appointlistPage(Page page);
|
||||
|
||||
List<PageData> getWorkTask(PageData condition);
|
||||
}
|
||||
|
|
|
@ -42,4 +42,6 @@ public interface XgfUserService {
|
|||
void repulse(PageData flows) throws Exception;
|
||||
|
||||
void approveMax(PageData request, MultipartFile[] chengNuoShu) throws Exception;
|
||||
|
||||
List<PageData> getWorkTask(PageData condition) throws Exception;
|
||||
}
|
||||
|
|
|
@ -959,6 +959,7 @@ public class XgfUserServiceImpl implements XgfUserService {
|
|||
key.putAll(entity);
|
||||
key.put("USER_ID", condition.get("XGF_USER_ID"));
|
||||
key.put("STATUS", "1");
|
||||
key.put("OPINION",flows.get("OPINION"));
|
||||
Map result = HttpClientService.doPost(prevention_xgf_url + "openApi/user/approve", key);
|
||||
if (result == null || !"succeed".equals(result.get("result"))) {
|
||||
throw new RuntimeException("请求失败");
|
||||
|
@ -990,6 +991,7 @@ public class XgfUserServiceImpl implements XgfUserService {
|
|||
XgfFlowDto info = new XgfFlowDto();
|
||||
info.setFLOWS_STEP(flows.getString("FLOWS_STEP"));
|
||||
info.setIterator(flows.getString("FLOWS_STEP"));
|
||||
info.setFLOWS_TYPE(flows.getString("FLOWS_TYPE"));
|
||||
info.setFLOWS_ID(x);
|
||||
info.setSTATUS(request.getString("STATUS"));
|
||||
info.setOPINION(request.getString("OPINION"));
|
||||
|
@ -1007,6 +1009,8 @@ public class XgfUserServiceImpl implements XgfUserService {
|
|||
// 进行数据审核
|
||||
LiteflowResponse response = flowExecutor.execute2Resp("chain1", info);
|
||||
if (!response.isSuccess()){
|
||||
Exception e = response.getCause();
|
||||
e.printStackTrace();
|
||||
System.out.println(response.getMessage());
|
||||
throw new RuntimeException("系统异常");
|
||||
}
|
||||
|
@ -1014,6 +1018,11 @@ public class XgfUserServiceImpl implements XgfUserService {
|
|||
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PageData> getWorkTask(PageData condition) throws Exception {
|
||||
return xgfUserMapper.getWorkTask(condition);
|
||||
}
|
||||
|
||||
private String getType(String corpInfoId) {
|
||||
// 集团单位id
|
||||
// (河港机械 jtdw002 1e6dbbe16004402f8d2c0e52afd9a676),
|
||||
|
|
|
@ -360,5 +360,26 @@
|
|||
and a.CHECK_STEP = #{pd.CHECK_STEP}
|
||||
</if>
|
||||
</select>
|
||||
<select id="getWorkTask" resultType="com.zcloud.entity.PageData">
|
||||
select a.XGF_USER_ID,
|
||||
a.BELONG_TO_CORP,
|
||||
a.BELONG_TO_CORP_NAME,
|
||||
a.USERNAME,
|
||||
a.NAME,
|
||||
a.CHECK_STEP,
|
||||
c.*
|
||||
from xgf_user a
|
||||
left join xgf_flows c on a.XGF_USER_ID = c.FLOWS_ID
|
||||
where a.IS_DELETE = '0'
|
||||
and ((c.APPOINT_ZERO_USER_ID = #{USER_ID} and c.FLOWS_STEP = '0')
|
||||
or (c.APPOINT_ONE_USER_ID = #{USER_ID} and c.FLOWS_STEP = '1')
|
||||
or (c.APPOINT_TWO_USER_ID = #{USER_ID} and c.FLOWS_STEP = '2')
|
||||
or (c.APPOINT_THREE_USER_ID = #{USER_ID} and c.FLOWS_STEP = '3')
|
||||
or (c.APPOINT_FOUR_USER_ID = #{USER_ID} and c.FLOWS_STEP = '4')
|
||||
or (c.APPOINT_FIVE_USER_ID = #{USER_ID} and c.FLOWS_STEP = '5')
|
||||
or (c.APPOINT_SIX_USER_ID = #{USER_ID} and c.FLOWS_STEP = '6')
|
||||
or (c.APPOINT_SEVEN_USER_ID = #{USER_ID} and c.FLOWS_STEP = '7')
|
||||
)
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
Loading…
Reference in New Issue