| | |
| | | |
| | | /** |
| | | * |
| | | * 根据出入库通知单启动审批工单 |
| | | * 根据质押合同,启动还款提醒工单 |
| | | * |
| | | * @param data 出入库工单数据 |
| | | * @return 响应结果 |
| | | */ |
| | | public BaseResp startByBackMoney(PledgeContract data, WorkOrderConf conf, Map<String,PledgeReminders> remindersMap) { |
| | | |
| | | if (null == conf) conf = confService.getByDeptId(data.getPledgeDept(), WorkBizType.TYPE_10); |
| | | if (null == conf) { |
| | | return BaseResp.error("未找到工单配置"); |
| | | } |
| | | |
| | | if (Constant.YN_N.equals(conf.getValTag())) return BaseResp.error("流程未启用"); |
| | | // Double sumMoneyNum = 0.0; |
| | |
| | | work.setBankId(data.getPledgeBank()); |
| | | work.setBusinessUrl("com.fzzy.igds.PledgeContract-Detail.d"); |
| | | work.setCreateTime(new Date()); |
| | | work.setDeptId(data.getPledgeDept()); |
| | | work.setDeptId(conf.getDeptId()); |
| | | work.setCompanyId(data.getCompanyId()); |
| | | work.setUpdateTime(new Date()); |
| | | work.setTitle("质押合同还款提醒"); |