删除无用接口
This commit is contained in:
parent
25faa09c83
commit
e7d63e5ccd
@ -6,7 +6,6 @@ import com.xkrs.dao.SysUserDao;
|
||||
import com.xkrs.model.entity.SysUserEntity;
|
||||
import com.xkrs.model.qo.SysUserQo;
|
||||
import com.xkrs.model.qo.SysUserReceiveSmsQo;
|
||||
import com.xkrs.model.qo.SysUserRemarkQo;
|
||||
import com.xkrs.model.qo.SysUserVipLevelQo;
|
||||
import com.xkrs.model.va.SysUserQoInsert;
|
||||
import com.xkrs.model.va.SysUserQoUpdate;
|
||||
@ -151,18 +150,6 @@ public class SysUserController {
|
||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "修改成功", locale);
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@RequestMapping(value = "/updateremark", method = RequestMethod.POST)
|
||||
public String updateRemark(@RequestBody SysUserRemarkQo sysUserRemarkQo) {
|
||||
Long id = sysUserRemarkQo.getId();
|
||||
Optional<SysUserEntity> optionalById = sysUserDao.findById(id);
|
||||
if (optionalById.isEmpty()) {
|
||||
return outputEncapsulationObject(PromptMessageEnum.PARAM_ILLEGAL, "修改失败,用户找不到", locale);
|
||||
}
|
||||
sysUserDao.updateRemark(id, sysUserRemarkQo.getRemark());
|
||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "修改成功", locale);
|
||||
}
|
||||
|
||||
/**
|
||||
* 登录用户Token验证
|
||||
*/
|
||||
|
@ -19,10 +19,6 @@ public interface SysUserDao extends JpaRepository<SysUserEntity, Long>, JpaSpeci
|
||||
@Query(value = "UPDATE sys_user SET receive_sms = ?2 WHERE id = ?1", nativeQuery = true)
|
||||
void updateReceiveSms(Long id, Integer receiveSms);
|
||||
|
||||
@Modifying(clearAutomatically = true)
|
||||
@Query(value = "UPDATE sys_user SET remark = ?2 WHERE id = ?1", nativeQuery = true)
|
||||
void updateRemark(Long id, String remark);
|
||||
|
||||
/**
|
||||
* 检查系统用户名是否存在
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user