|
|
|
@ -297,9 +297,13 @@ public class InnovationVoucherController extends JeecgController<InnovationVouch |
|
|
|
|
@PostMapping(value = "/add") |
|
|
|
|
public Result<String> add(@RequestBody InnovationVoucher innovationVoucher) { |
|
|
|
|
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
|
|
|
|
SysDepart sysDepart = sysDepartService.getById(loginUser.getOrgId()); |
|
|
|
|
if(sysDepart.getStatus().equals("0")){ |
|
|
|
|
return Result.error("该用户单位冻结,无法申请"); |
|
|
|
|
} |
|
|
|
|
innovationVoucher.setProDept(loginUser.getOrgId()); |
|
|
|
|
String uuid = IdUtil.randomUUID().replaceAll("-", ""); |
|
|
|
|
if(sysDepartService.getById(loginUser.getOrgId()).getOrgCategory().equals("3")){ |
|
|
|
|
if(sysDepart.getOrgCategory().equals("3")){ |
|
|
|
|
innovationVoucher.setFlag("1"); |
|
|
|
|
String cxqCode = "XQ"; |
|
|
|
|
cxqCode += uuid.substring(0, 18); |
|
|
|
|