|
|
@ -12,6 +12,11 @@ import com.qs.serve.modules.seeyon.service.impl.SeeYonRequestBaseService; |
|
|
|
import com.qs.serve.modules.sys.entity.SysUser; |
|
|
|
import com.qs.serve.modules.sys.service.SysUserService; |
|
|
|
import com.qs.serve.modules.tbs.common.TbsSeeYonConst; |
|
|
|
import com.qs.serve.modules.tbs.service.TbsCostApplyService; |
|
|
|
import com.qs.serve.modules.tzc.entity.TzcPolicy; |
|
|
|
import com.qs.serve.modules.tzc.service.TzcPolicyService; |
|
|
|
import com.qs.serve.modules.vtb.entity.VtbVerification; |
|
|
|
import com.qs.serve.modules.vtb.service.VtbVerificationService; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
@ -33,6 +38,9 @@ public class SeeYonController { |
|
|
|
|
|
|
|
private SeeYonRequestBaseService seeYonRequestBaseService; |
|
|
|
private SysUserService sysUserService; |
|
|
|
private TbsCostApplyService costApplyService; |
|
|
|
private VtbVerificationService verificationService; |
|
|
|
private TzcPolicyService policyService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 我的审批列表 |
|
|
@ -48,6 +56,20 @@ public class SeeYonController { |
|
|
|
return listAllCha(query); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 统计未完成 |
|
|
|
* @param query |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("count") |
|
|
|
public R<Long> getCount(SeeYonApproveQuery query){ |
|
|
|
String userId = AuthContextUtils.getSysUserId(); |
|
|
|
SysUser sysUser = sysUserService.getById(userId); |
|
|
|
sysUser.checkSyAccount(); |
|
|
|
query.setMemberId(sysUser.getSyUserId()); |
|
|
|
return R.ok(123456L); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 所有审批 |
|
|
|
* @param query |
|
|
@ -68,7 +90,16 @@ public class SeeYonController { |
|
|
|
String tempCode = obj.getTemplateCode().replace("_Test",""); |
|
|
|
tempCode = tempCode.replace("contractApply","CostBill"); |
|
|
|
obj.setTemplateCode(tempCode); |
|
|
|
|
|
|
|
//设置实体类
|
|
|
|
Object info = null; |
|
|
|
if (tempCode.equals("CheckCost")) { |
|
|
|
info = verificationService.getById(obj.getTargetId()); |
|
|
|
}else if (tempCode.equals("CostBill")){ |
|
|
|
info = costApplyService.getById(obj.getTargetId()); |
|
|
|
}else if (tempCode.equals("ReleasePolicy")){ |
|
|
|
info = policyService.getById(obj.getTargetId()); |
|
|
|
} |
|
|
|
obj.setValueInfo(info); |
|
|
|
affairList.add(obj); |
|
|
|
} |
|
|
|
} |
|
|
|