src/main/java/org/springblade/modules/system/controller/UserController.java
@@ -282,6 +282,28 @@ return R.success("修改成功"); } /** * 修改发证时间 */ @PostMapping("/updatePaperTime") public R updatePaperTime(@RequestBody User user) { user.setPaperTime(new Date()); userService.updateById(user); String paperTime = null; //发证日期处理 if (user.getPaperTime() == null) { paperTime = null; } else { paperTime = new SimpleDateFormat("yyyy-MM-dd").format(user.getPaperTime()); } String s1 = "update blade_user set paper_time = " + "'" + paperTime + "'" + " " + "where id = " + "'" + user.getId() + "'"; FtpUtil.sqlFileUpload(s1); return R.success("修改成功"); } /** * 删除 */ src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -53,6 +53,7 @@ <!--带坐标--> <select id="selectUserPages" resultMap="userResultMap"> select distinct bu.*, sll.longitude,sll.latitude, bd.dept_name @@ -78,6 +79,10 @@ blade_role br on br.id = bu.role_id left join sys_training_registration str on bu.id = str.user_id where bu.is_deleted = 0 and bd.parent_id!=1425365577303621633 @@ -101,6 +106,9 @@ <if test="user.status!=null and user.status != ''"> and bu.status = #{user.status} </if> <if test="user.trainingUnitId!=null and user.trainingUnitId != ''"> and str.training_unit_id = #{user.trainingUnitId} </if> <if test="user.jurisdiction!=null and user.jurisdiction != '' and user.jurisdiction!='1372091709474910209'"> and (sj.id = #{user.jurisdiction} or sj.parent_id = #{user.jurisdiction}) </if> src/main/java/org/springblade/modules/system/vo/UserVO.java
@@ -118,4 +118,10 @@ private Integer examType; /** * 培训公司id */ private String trainingUnitId; }