| | |
| | | import org.springblade.common.utils.DesensitizedUtil; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.information.entity.Information; |
| | | import org.springblade.modules.licence.entity.LicencePaper; |
| | | import org.springblade.modules.licence.service.LicencePaperService; |
| | | import org.springblade.modules.licence.vo.LicencePaperVo; |
| | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * @author zhongrj |
| | |
| | | */ |
| | | @PostMapping("/submit") |
| | | public R submit(@RequestBody LicencePaper licencePaper){ |
| | | LicencePaper licencePaper1 = licencePaper; |
| | | LicencePaper licencePaper1 = Objects.requireNonNull(BeanUtil.copy(licencePaper, LicencePaper.class)); |
| | | //脱敏处理 |
| | | if (null!= licencePaper.getApprovalNumber() && !licencePaper.getApprovalNumber().equals("")){ |
| | | licencePaper.setApprovalNumber(DesensitizedUtil.desensitizedSecurityNumber(licencePaper.getApprovalNumber())); |
| | |
| | | */ |
| | | @PostMapping("/remove") |
| | | public R remove(@ApiParam(value = "主键集合") @RequestParam String ids) { |
| | | //内网删除 |
| | | List<Long> list = Func.toLongList(ids); |
| | | list.forEach(id -> { |
| | | //内网同步 |
| | | String s1 = "delete from sys_licence_paper where id = " + "'" + id + "'"; |
| | | myAsyncService.FTP(s1); |
| | | }); |
| | | return R.status(licencePaperService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |