Commit a47a8d91 by zhengxj

finish 组织新增 on 20190228 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17962 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 83bce28b
...@@ -97,6 +97,9 @@ public class OrganizationController extends BaseController{ ...@@ -97,6 +97,9 @@ public class OrganizationController extends BaseController{
sysOrganization.setCreateTime(new Date()); sysOrganization.setCreateTime(new Date());
sysOrganization.setCreateBy(UserUtils.getUserName(request)); sysOrganization.setCreateBy(UserUtils.getUserName(request));
if(sysOrganization.getOrgType()==null){
sysOrganization.setOrgType((byte)1);
}
int i = organizationService.insertSelective(sysOrganization); int i = organizationService.insertSelective(sysOrganization);
String msg = i == 0 ? ResultCodeEnum.FAIL.getMsg() : ResultCodeEnum.SUCCESS.getMsg(); String msg = i == 0 ? ResultCodeEnum.FAIL.getMsg() : ResultCodeEnum.SUCCESS.getMsg();
int code = i == 0 ? ResultCodeEnum.FAIL.getCode() : ResultCodeEnum.SUCCESS.getCode(); int code = i == 0 ? ResultCodeEnum.FAIL.getCode() : ResultCodeEnum.SUCCESS.getCode();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!