master
Gitea 2 weeks ago
parent 54a57f5216
commit 10269fa050
  1. 6
      jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/innovationvoucher/controller/InnovationVoucherController.java

@ -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);

Loading…
Cancel
Save