Commit ea005599 by 陶光胜

init

parent 60805072
package com.gic.enterprise.dao.mapper;
package com.gic.auth.dao.mapper;
import com.gic.enterprise.entity.TabUser;
import com.gic.auth.entity.TabUser;
import org.apache.ibatis.annotations.Param;
public interface TabUserMapper {
......
package com.gic.enterprise.service;
package com.gic.auth.service;
import com.gic.auth.dto.UserDTO;
import com.gic.enterprise.entity.TabUser;
import com.gic.auth.entity.TabUser;
/**
* @author guojx
......
package com.gic.enterprise.service.impl;
package com.gic.auth.service.impl;
import com.gic.auth.dto.UserDTO;
import com.gic.auth.entity.TabUser;
import com.gic.auth.service.UserService;
import com.gic.commons.util.EntityUtil;
import com.gic.enterprise.dao.mapper.TabUserMapper;
import com.gic.enterprise.entity.TabUser;
import com.gic.enterprise.service.UserService;
import com.gic.auth.dao.mapper.TabUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -13,7 +13,7 @@ import org.springframework.stereotype.Service;
* @date 2019/7/16 6:52 PM
*/
@Service("userService")
public class UserServiceImpl implements UserService{
public class UserServiceImpl implements UserService {
@Autowired
private TabUserMapper tabUserMapper;
@Override
......
package com.gic.enterprise.service.outer;
package com.gic.auth.service.outer;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.auth.dto.UserDTO;
import com.gic.auth.service.UserApiService;
import com.gic.commons.util.EntityUtil;
import com.gic.enterprise.entity.TabUser;
import com.gic.auth.entity.TabUser;
import com.gic.enterprise.error.ErrorCode;
import com.gic.enterprise.service.UserService;
import com.gic.auth.service.UserService;
import com.gic.store.utils.valid.ValidUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gic.enterprise.dao.mapper.TabUserMapper">
<resultMap id="BaseResultMap" type="com.gic.enterprise.entity.TabUser">
<mapper namespace="com.gic.auth.dao.mapper.TabUserMapper">
<resultMap id="BaseResultMap" type="com.gic.auth.entity.TabUser">
<id column="user_id" jdbcType="INTEGER" property="userId" />
<result column="user_name" jdbcType="VARCHAR" property="userName" />
<result column="phone_number" jdbcType="VARCHAR" property="phoneNumber" />
......@@ -27,7 +27,7 @@
delete from tab_user
where user_id = #{userId,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.gic.enterprise.entity.TabUser" useGeneratedKeys="true" keyProperty="userId">
<insert id="insert" parameterType="com.gic.auth.entity.TabUser" useGeneratedKeys="true" keyProperty="userId">
insert into tab_user (user_id, user_name, phone_number,
password, super_admin, status,
create_time, update_time, enterprise_id,
......@@ -37,7 +37,7 @@
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{enterpriseId,jdbcType=INTEGER},
#{phoneAreaCode,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.gic.enterprise.entity.TabUser">
<insert id="insertSelective" parameterType="com.gic.auth.entity.TabUser">
insert into tab_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userId != null">
......@@ -104,7 +104,7 @@
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.enterprise.entity.TabUser">
<update id="updateByPrimaryKeySelective" parameterType="com.gic.auth.entity.TabUser">
update tab_user
<set>
<if test="userName != null">
......@@ -137,7 +137,7 @@
</set>
where user_id = #{userId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.enterprise.entity.TabUser">
<update id="updateByPrimaryKey" parameterType="com.gic.auth.entity.TabUser">
update tab_user
set user_name = #{userName,jdbcType=VARCHAR},
phone_number = #{phoneNumber,jdbcType=VARCHAR},
......
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