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