| | |
| | | @RequestMapping(value = "/contract/add/auth") |
| | | @ManagerAuth |
| | | public R add(Contract contract) { |
| | | contract.setCreateBy(getUserId()); |
| | | contract.setUserId(getUserId()); |
| | | //创建人员部门 |
| | | contract.setDeptId(getDeptId()); |
| | | contract.setCreateTime(new Date()); |
| | | contractService.insert(contract); |
| | | return R.ok(); |
| | |
| | | return null; |
| | | } |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("{{serial}}", contract.getSerial()); |
| | | map.put("{{customer}}", contract.getCustomer()); |
| | | map.put("{{address}}", contract.getAddress()); |
| | | map.put("{{company}}", contract.getCompany()); |