租赁协议
This commit is contained in:
parent
e6700a09cc
commit
3b0b0c331e
|
|
@ -75,8 +75,12 @@ public class BmContractController extends BaseController {
|
|||
@ApiOperation(value = "合同状态修改(开启/关闭)")
|
||||
@PostMapping("/updateStatus")
|
||||
public AjaxResult updateStatus(@RequestBody BmContract bmContract) {
|
||||
bmContractService.updateStatus(bmContract);
|
||||
return AjaxResult.success();
|
||||
Integer i = bmContractService.updateStatus(bmContract);
|
||||
if (i > 0){
|
||||
return AjaxResult.success();
|
||||
}else {
|
||||
return AjaxResult.error();
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "合同模板列表")
|
||||
|
|
|
|||
|
|
@ -108,7 +108,8 @@ public class BmContractServiceImpl implements BmContractService {
|
|||
if (i > 0) {
|
||||
// 其他的禁用
|
||||
bmContract.setOwnerCom(SecurityUtils.getLoginUser().getSysUser().getCompanyId());
|
||||
return bmContractMapper.updateStatusOther(bmContract);
|
||||
bmContractMapper.updateStatusOther(bmContract);
|
||||
return i;
|
||||
} else {
|
||||
return i;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue