仪器申报驳回错误修改

master
Gitea 3 weeks ago
parent 9852470ebb
commit 8abace892a
  1. 4
      jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/instrument/controller/InstrumentController.java

@ -215,8 +215,8 @@ public class InstrumentController extends JeecgController<Instrument, IInstrumen
//@RequiresPermissions("instrument:instrument:edit")
@RequestMapping(value = "/edit2", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> edit2(@RequestBody Instrument instrument) {
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
if(sysDepartService.getById(loginUser.getOrgId()).getOrgCategory().equals("3")){
//LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
if(sysDepartService.getById(instrument.getDeclarationUnit()).getOrgCategory().equals("3")){
instrument.setFlag("1");
}else{
instrument.setFlag("0");

Loading…
Cancel
Save