Commit 08466fa7 by zhengxj

finish 修复bug17094 on 20190314 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18508 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 3862ec3c
...@@ -115,11 +115,8 @@ public class OrganizationController extends BaseController{ ...@@ -115,11 +115,8 @@ public class OrganizationController extends BaseController{
public ResultObject deleteById( SysOrganization organization) { public ResultObject deleteById( SysOrganization organization) {
if (organization==null||organization.getId() == null) { if (organization==null||organization.getId() == null) {
return new ResultObject(ResultCodeEnum.FAIL.getCode(), ResultCodeEnum.FAIL); return new ResultObject(ResultCodeEnum.FAIL.getCode(), ResultCodeEnum.FAIL);
} }
int i = organizationService.deleteByPrimaryKey(organization.getId()); return organizationService.deleteByPrimaryKey(organization.getId());
String msg = i == 0 ? ResultCodeEnum.FAIL.getMsg() : ResultCodeEnum.SUCCESS.getMsg();
int code = i == 0 ? ResultCodeEnum.FAIL.getCode() : ResultCodeEnum.SUCCESS.getCode();
return new ResultObject(code, msg);
} }
@Log(menuName="系统管理-组织管理", operateType = Constants.SYS_LOG_OPERATE_TYPE_UPDATE) @Log(menuName="系统管理-组织管理", operateType = Constants.SYS_LOG_OPERATE_TYPE_UPDATE)
......
...@@ -21,7 +21,7 @@ import com.glsx.usercenter.pojo.user.SysUser; ...@@ -21,7 +21,7 @@ import com.glsx.usercenter.pojo.user.SysUser;
public interface ISysOrganizationService { public interface ISysOrganizationService {
long countByExample(SysOrganizationExample example); long countByExample(SysOrganizationExample example);
int deleteByPrimaryKey(Integer id); ResultObject deleteByPrimaryKey(Integer id);
ResultObject insertSelective(SysOrganization record); ResultObject insertSelective(SysOrganization record);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!