| | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | /** |
| | |
| | | @PostMapping("/addFundTax") |
| | | public AjaxResult addFundTax(@RequestBody ServiceFundtax serviceFundtax) { |
| | | serviceFundtax.setTaxedtime(new Date()); |
| | | serviceFundtax.setApplyno(UUID.randomUUID().toString()); |
| | | |
| | | serviceFundtax.setApplyno(new SimpleDateFormat("yyyyMMddHHmmss").format(new Date())); |
| | | serviceFundtaxService.save(serviceFundtax); |
| | | for (ServiceFund serviceFund : serviceFundtax.getServiceFunds()) { |
| | | serviceFund.setFundTaxId(serviceFundtax.getId()); |