| | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.bean.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.project.common.IdGeneratorUtils; |
| | | import com.ruoyi.project.domain.*; |
| | | import com.ruoyi.project.domain.vo.*; |
| | | import com.ruoyi.project.mapper.*; |
| | |
| | | Boolean aBoolean = serviceFundflowService.saveData(serviceFundflow); |
| | | log.info("sserviceFund保存的的值是-------- :{}", aBoolean); |
| | | |
| | | //053审批通过之后,就需要把“办公室主任”的名字填上 |
| | | if (checkFundVO.getFlowconclusion() == 1 && user.getUserName().equals("053")) { |
| | | //办公室审批通过之后,就需要把“办公室主任”的名字填上 |
| | | List<SysUser> sysUsers =null; |
| | | if(StringUtils.isNotEmpty(user.getUserName())) { |
| | | SysUser su = new SysUser(); |
| | | su.setUserName(user.getUserName()); |
| | | sysUsers = sysUserMapper.selectAllocatedList(su); |
| | | log.info("费用sysUsers返回的值为:{}", sysUsers); |
| | | } |
| | | if (checkFundVO.getFlowconclusion() == 1 && sysUsers != null && !sysUsers.isEmpty() |
| | | && sysUsers.get(0).getRoles() != null |
| | | && sysUsers.get(0).getRoles().stream().anyMatch(role -> "officedirector".equals(role.getRoleKey()))) { |
| | | serviceFund.setOfficedirector(user.getNickName()); |
| | | serviceFund.setUploadStates(1); |
| | | //数据发送 |
| | |
| | | return true; |
| | | } |
| | | |
| | | private static final AtomicLong COUNTER = new AtomicLong(System.currentTimeMillis()); |
| | | |
| | | private Map<String, List<Map<String, Object>>> formson_0832(List<ServiceFunddetailShared> serviceFunddetailSharedList) { |
| | | Map<String, List<Map<String, Object>>> allMap = new HashMap<>(); |
| | | |
| | |
| | | map.put("收益人家属或专家", serviceFunddetailShared.getBeneficiaryname()); |
| | | map.put("税后金额", serviceFunddetailShared.getTaxedamount()); |
| | | map.put("作废最终金额", null); |
| | | Long fpuuid = COUNTER.incrementAndGet(); |
| | | Long fpuuid = IdGeneratorUtils.nextId(); |
| | | map.put("发票附件", ""); |
| | | if (StringUtils.isNotEmpty(invoicefiles)) { |
| | | map.put("发票附件", fpuuid); |
| | |
| | | map.put("发票识别", null); |
| | | map.put("识别人", null); |
| | | map.put("税额", serviceFunddetailShared.getTaxamount()); |
| | | long qtuuid = COUNTER.incrementAndGet(); |
| | | long qtuuid = IdGeneratorUtils.nextId(); |
| | | map.put("其他附件", ""); |
| | | if (StringUtils.isNotEmpty(annexfiles)) { |
| | | map.put("其他附件", qtuuid); |