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