Commit 8f6f543e by guojuxing

运营平台单点登录

parent 93c17fc8
...@@ -20,7 +20,7 @@ public interface OperationUserService { ...@@ -20,7 +20,7 @@ public interface OperationUserService {
* @Description: * @Description:

 * @author guojuxing 
 * @author guojuxing
* @param dto
 * @param dto

* @return void * @return Integer

 */ 
 */
void save(OperationUserDTO dto); Integer save(OperationUserDTO dto);
} }
...@@ -22,7 +22,7 @@ public class OperationUserServiceImpl implements OperationUserService{ ...@@ -22,7 +22,7 @@ public class OperationUserServiceImpl implements OperationUserService{
} }
@Override @Override
public void save(OperationUserDTO dto) { public Integer save(OperationUserDTO dto) {
dto.setCreateTime(new Date()); dto.setCreateTime(new Date());
dto.setUpdateTime(new Date()); dto.setUpdateTime(new Date());
dto.setStatus(1); dto.setStatus(1);
...@@ -31,5 +31,6 @@ public class OperationUserServiceImpl implements OperationUserService{ ...@@ -31,5 +31,6 @@ public class OperationUserServiceImpl implements OperationUserService{
} }
TabSysOperationUser record = EntityUtil.changeEntityNew(TabSysOperationUser.class, dto); TabSysOperationUser record = EntityUtil.changeEntityNew(TabSysOperationUser.class, dto);
tabSysOperationUserMapper.insert(record); tabSysOperationUserMapper.insert(record);
return record.getOperationUserId();
} }
} }
...@@ -17,8 +17,7 @@ public class OperationUserApiServiceImpl implements OperationUserApiService{ ...@@ -17,8 +17,7 @@ public class OperationUserApiServiceImpl implements OperationUserApiService{
} }
@Override @Override
public ServiceResponse<Void> save(OperationUserDTO dto) { public ServiceResponse<Integer> save(OperationUserDTO dto) {
operationUserService.save(dto); return ServiceResponse.success(operationUserService.save(dto));
return ServiceResponse.success();
} }
} }
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
delete from tab_sys_operation_user delete from tab_sys_operation_user
where operation_user_id = #{operationUserId,jdbcType=INTEGER} where operation_user_id = #{operationUserId,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.gic.auth.entity.TabSysOperationUser"> <insert id="insert" parameterType="com.gic.auth.entity.TabSysOperationUser" useGeneratedKeys="true" keyProperty="operationUserId">
insert into tab_sys_operation_user (operation_user_id, operation_user_name, insert into tab_sys_operation_user (operation_user_id, operation_user_name,
phone_number, status, create_time, phone_number, status, create_time,
update_time, enterprise_id, phone_area_code update_time, enterprise_id, phone_area_code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment