|
@@ -12,6 +12,7 @@
|
|
|
status,
|
|
|
account,
|
|
|
accountName,
|
|
|
+ personnelType,
|
|
|
addTime,
|
|
|
updateTime
|
|
|
FROM cm_mall_admin_user
|
|
@@ -26,6 +27,9 @@
|
|
|
<if test="status != null and status != ''">
|
|
|
and status = #{status}
|
|
|
</if>
|
|
|
+ <if test="personnelType != null and personnelType != ''">
|
|
|
+ and personnelType = #{personnelType}
|
|
|
+ </if>
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
and addTime <![CDATA[ >= ]]> #{startTime} and addTime <![CDATA[ <= ]]> #{endTime}
|
|
|
</if>
|
|
@@ -57,8 +61,8 @@
|
|
|
limit 1
|
|
|
</select>
|
|
|
<insert id="insertMallUser">
|
|
|
- INSERT INTO cm_mall_admin_user(account, accountName, PASSWORD, salt, organizeID, status, ADDTIME, updateTime, delFlag)
|
|
|
- VALUES(#{account}, #{accountName}, #{password}, #{salt}, #{organizeId}, #{status}, #{addTime}, #{updateTime}, #{delFlag})
|
|
|
+ INSERT INTO cm_mall_admin_user(account, accountName, PASSWORD, salt, organizeID, status, personnelType, ADDTIME, updateTime, delFlag)
|
|
|
+ VALUES(#{account}, #{accountName}, #{password}, #{salt}, #{organizeId}, #{status}, #{personnelType}, #{addTime}, #{updateTime}, #{delFlag})
|
|
|
</insert>
|
|
|
<update id="updateMallUser">
|
|
|
update cm_mall_admin_user
|
|
@@ -75,7 +79,13 @@
|
|
|
<if test="organizeId != null and organizeId != ''">
|
|
|
organizeID = #{organizeId},
|
|
|
</if>
|
|
|
- <if test="updateTime != null and updateTime != ''">
|
|
|
+ <if test="status != null and status != ''">
|
|
|
+ status = #{status},
|
|
|
+ </if>
|
|
|
+ <if test="personnelType != null and personnelType != ''">
|
|
|
+ personnelType = #{personnelType},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
updateTime = #{updateTime},
|
|
|
</if>
|
|
|
<if test="salt != null and salt != ''">
|