Commit 29b75ef6 by duanhq

重复方法删除 by duanht 2019/3/7

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18230 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 2ac501e5
......@@ -41,8 +41,6 @@ public interface SysUserMapper {
int updateByExample(@Param("record") SysUser record, @Param("example") SysUserExample example);
int updateByPrimaryKeySelective(@Param("record")SysUser record);
int updateByPrimaryKey(SysUser record);
List<SysManager> getAllUserList(UserQueryVo userQueryVo);
......
......@@ -303,7 +303,7 @@ public class SysUserServiceImpl implements SysUserService {
userId = sysMerchant.getUserId();
} else {
//更新主表
sysUserMapper.updateByPrimaryKeySelective(sysMerchant);
sysUserMapper.updateSysUser(sysMerchant);
//更新商户详细表
sysUserMapper.updateSysMerchant(sysMerchant);
}
......@@ -333,7 +333,7 @@ public class SysUserServiceImpl implements SysUserService {
sysUserMapper.insertServiceMechanic(serviceId, userId);
} else {
//更新主表
sysUserMapper.updateByPrimaryKeySelective(sysMechanic);
sysUserMapper.updateSysUser(sysMechanic);
//更新技工详细表
sysUserMapper.updateSysMechanic(sysMechanic);
}
......
......@@ -436,55 +436,6 @@
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="map">
update sys_user
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.username != null">
username = #{record.username,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.orgId != null">
org_id = #{record.orgId,jdbcType=INTEGER},
</if>
<if test="record.phoneNumber != null">
phone_number = #{record.phoneNumber,jdbcType=VARCHAR},
</if>
<if test="record.userStatus != null">
user_status = #{record.userStatus,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.password != null">
password = #{record.password,jdbcType=VARCHAR},
</if>
<if test="record.sex != null">
sex = #{record.sex,jdbcType=VARCHAR},
</if>
<if test="record.remark != null">
remark = #{record.remark,jdbcType=VARCHAR},
</if>
<if test="record.groupId != null">
group_id = #{record.groupId,jdbcType=INTEGER},
</if>
</set>
where id = #{record.id,jdbcType=INTEGER}
</update>
<update id="updateSysUser" parameterType="com.glsx.usercenter.pojo.user.SysUser">
update sys_user
<set>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!