Commit 7aba033d by xiaoyj

新增商户返回主键

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@19551 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent c378614a
......@@ -320,7 +320,7 @@ public class SysUserServiceImpl implements SysUserService {
@Override
@Transactional(rollbackFor = Exception.class)
public int saveSysMerchant(SysMerchant sysMerchant) {
Integer userId = null;
int userId = 0;
try {
if (sysMerchant.getId() == null || sysMerchant.getId() == 0) {
// 新增商户
......@@ -365,7 +365,7 @@ public class SysUserServiceImpl implements SysUserService {
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}
return 1;
return userId;
}
private int addOrganization(SysMerchant sysMerchant) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!