Commit 9c2f4070 by duanhq

技工注册修改 by duanht 2019/4/10

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@19483 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 30ddf6ff
...@@ -396,6 +396,13 @@ public class SysUserServiceImpl implements SysUserService { ...@@ -396,6 +396,13 @@ public class SysUserServiceImpl implements SysUserService {
if (sysMechanic.getId() == null || sysMechanic.getId() == 0) { if (sysMechanic.getId() == null || sysMechanic.getId() == 0) {
// 新增技工 // 新增技工
sysUserMapper.insertSelective(sysMechanic); sysUserMapper.insertSelective(sysMechanic);
//技工通过小程序注册,创建人是自己
if(sysMechanic.getCreateBy() == null){
sysMechanic.setCreateBy( sysMechanic.getId() );
sysUserMapper.updateSysUser(sysMechanic);
}
sysMechanic.setUserId(sysMechanic.getId()); sysMechanic.setUserId(sysMechanic.getId());
sysUserMapper.insertSysMechanic(sysMechanic); sysUserMapper.insertSysMechanic(sysMechanic);
userId = sysMechanic.getUserId(); userId = sysMechanic.getUserId();
......
...@@ -153,9 +153,6 @@ ...@@ -153,9 +153,6 @@
<if test="createBy != null"> <if test="createBy != null">
create_by, create_by,
</if> </if>
<if test="createBy == null">
create_by,
</if>
<if test="createTime != null"> <if test="createTime != null">
create_time, create_time,
</if> </if>
...@@ -198,10 +195,7 @@ ...@@ -198,10 +195,7 @@
#{userStatus,jdbcType=VARCHAR}, #{userStatus,jdbcType=VARCHAR},
</if> </if>
<if test="createBy != null"> <if test="createBy != null">
#{createBy,jdbcType=VARCHAR}, #{createBy,jdbcType=INTEGER},
</if>
<if test="createBy == null">
#{id},
</if> </if>
<if test="createTime != null"> <if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!