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