|
|
@@ -24,13 +24,13 @@ public interface UserMapper {
|
|
|
*/
|
|
|
@Update("<script>" +
|
|
|
"UPDATE bi_users set " +
|
|
|
- "USER_NAME = #{userName,jdbcType=VARCHAR}" +
|
|
|
- "<if test=\"passWord != null\"> , PASS_WORD = #{passWord,jdbcType=VARCHAR} </if>" +
|
|
|
- " <if test=\"name != null\"> , bu_name = #{name,jdbcType=VARCHAR} </if>" +
|
|
|
- " <if test=\"post != null\"> , BU_POST = #{post,jdbcType=VARCHAR} </if>" +
|
|
|
- " <if test=\"department != null\"> , BU_DEPARTMENT = #{department,jdbcType=VARCHAR} </if>" +
|
|
|
- " <if test=\"role != null\"> , BU_ROLE = #{role,jdbcType=VARCHAR} </if>" +
|
|
|
- " ,updata_date = to_date(to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),'YYYY-MM-DD hh24:mi:ss')" +
|
|
|
+ " <if test=\"userName != null\"> USER_NAME = #{userName,jdbcType=VARCHAR}, </if>" +
|
|
|
+ " <if test=\"passWord != null\">PASS_WORD = #{passWord,jdbcType=VARCHAR}, </if>" +
|
|
|
+ " <if test=\"name != null\">bu_name = #{name,jdbcType=VARCHAR}, </if>" +
|
|
|
+ " <if test=\"post != null\">BU_POST = #{post,jdbcType=VARCHAR}, </if>" +
|
|
|
+ " <if test=\"department != null\">BU_DEPARTMENT = #{department,jdbcType=VARCHAR}, </if>" +
|
|
|
+ " <if test=\"role != null\">BU_ROLE = #{role,jdbcType=VARCHAR}, </if>" +
|
|
|
+ " updata_date = to_date(to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'),'YYYY-MM-DD hh24:mi:ss')" +
|
|
|
" where bu_id = #{id,jdbcType=INTEGER}" +
|
|
|
" </script>")
|
|
|
void updateUser(User user);
|