Commit 8f6f543e by guojuxing

运营平台单点登录

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

 * @author guojuxing
* @param dto

* @return void
* @return Integer

 */
void save(OperationUserDTO dto);
Integer save(OperationUserDTO dto);
}
......@@ -22,7 +22,7 @@ public class OperationUserServiceImpl implements OperationUserService{
}
@Override
public void save(OperationUserDTO dto) {
public Integer save(OperationUserDTO dto) {
dto.setCreateTime(new Date());
dto.setUpdateTime(new Date());
dto.setStatus(1);
......@@ -31,5 +31,6 @@ public class OperationUserServiceImpl implements OperationUserService{
}
TabSysOperationUser record = EntityUtil.changeEntityNew(TabSysOperationUser.class, dto);
tabSysOperationUserMapper.insert(record);
return record.getOperationUserId();
}
}
......@@ -17,8 +17,7 @@ public class OperationUserApiServiceImpl implements OperationUserApiService{
}
@Override
public ServiceResponse<Void> save(OperationUserDTO dto) {
operationUserService.save(dto);
return ServiceResponse.success();
public ServiceResponse<Integer> save(OperationUserDTO dto) {
return ServiceResponse.success(operationUserService.save(dto));
}
}
......@@ -25,7 +25,7 @@
delete from tab_sys_operation_user
where operation_user_id = #{operationUserId,jdbcType=INTEGER}
</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,
phone_number, status, create_time,
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