更新日期
This commit is contained in:
parent
4adf738e5d
commit
ce8d89f1ea
|
@ -163,7 +163,12 @@ public class UserController {
|
|||
return userService.userAdd(userAddVo, request);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 管理员编辑用户
|
||||
* @Date: 2024/1/18
|
||||
* @Param userEditVO:
|
||||
* @Param bindingResult:
|
||||
**/
|
||||
@PutMapping("/user/edit")
|
||||
public BaseResponse userEdit(@RequestBody @Validated UserEditVO userEditVO, BindingResult bindingResult, HttpServletRequest request) {
|
||||
log.info("请求接口[PUT]: /user/edit");
|
||||
|
|
|
@ -36,7 +36,7 @@ public interface ProjectMapper {
|
|||
@Insert("insert into organize_oa.oa_config(value, data, created_at)value ('project_show',null,NOW())")
|
||||
void insertProjectShow();
|
||||
|
||||
@Update("UPDATE organize_oa.oa_config SET data = #{setProjectShow} WHERE value = 'project_show'")
|
||||
@Update("UPDATE organize_oa.oa_config SET data = #{setProjectShow}, updated_at = CURRENT_TIMESTAMP WHERE value = 'project_show'")
|
||||
boolean setProjectShow(String setProjectShow);
|
||||
|
||||
@Select("select * from organize_oa.oa_permissions")
|
||||
|
|
|
@ -33,7 +33,7 @@ public interface RoleMapper {
|
|||
@Update("UPDATE organize_oa.oa_role SET role_name=#{roleName},display_name=#{displayName},updated_at=CURRENT_TIMESTAMP WHERE id=#{id}")
|
||||
boolean roleEdit(RoleDO getRole);
|
||||
|
||||
@Update("UPDATE organize_oa.oa_role_user SET rid = #{rid} WHERE uid = #{uid}")
|
||||
@Update("UPDATE organize_oa.oa_role_user SET rid = #{rid},updated_at = current_timestamp WHERE uid = #{uid}")
|
||||
boolean roleChangeUser(Long uid, Long rid);
|
||||
|
||||
@Delete("DELETE FROM organize_oa.oa_role WHERE id=#{id}")
|
||||
|
|
|
@ -74,7 +74,6 @@ public interface UserMapper {
|
|||
"signature = #{signature}, sex = #{sex}, avatar = #{avatar}, nickname = #{nickname}, " +
|
||||
"description = #{description} ,updated_at = current_timestamp " +
|
||||
"WHERE id = #{id}")
|
||||
|
||||
void updateUser(UserDO userDO);
|
||||
|
||||
@Select("SELECT * FROM organize_oa.oa_user WHERE email = #{email}")
|
||||
|
|
|
@ -1,18 +1,35 @@
|
|||
server:
|
||||
port: 8080
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://localhost:3306
|
||||
username: organize_oa
|
||||
password: 123456
|
||||
url: jdbc:mysql://localhost:3306?organize_oa
|
||||
username: root
|
||||
password: Zrx@20041009
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
redis:
|
||||
database: 0
|
||||
host: local
|
||||
host: localhost
|
||||
port: 6379
|
||||
password:
|
||||
profiles:
|
||||
active: dev
|
||||
password: Zrx@20041009
|
||||
mail:
|
||||
default-encoding: UTF-8
|
||||
host: smtp.qiye.aliyun.com
|
||||
username: wxxydeveloper@x-lf.cn
|
||||
password: 114477225588Zcw
|
||||
properties:
|
||||
form: wxxydeveloper@x-lf.cn
|
||||
mail:
|
||||
smtp:
|
||||
auth: true
|
||||
starttls:
|
||||
enable: true
|
||||
ssl:
|
||||
enable: true
|
||||
mybatis:
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
logging:
|
||||
level:
|
||||
root: TRACE
|
||||
sun.rmi: OFF
|
||||
org.apache.tomcat: WARN
|
||||
server:
|
||||
port: 8155
|
Loading…
Reference in New Issue
Block a user