| | |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pmsGlobal.aop.Log; |
| | | import com.dy.pmsGlobal.pojoBa.BaRole; |
| | | import com.dy.pmsGlobal.pojoBa.BaUser; |
| | | import com.dy.pmsGlobal.util.Constant; |
| | | import com.mysql.cj.util.StringUtils; |
| | |
| | | Long id; |
| | | try { |
| | | po.supperAdmin = Constant.no.byteValue() ; |
| | | po.disabled = false ;//默认不禁用 |
| | | // po.disabled = false ;//默认不禁用 |
| | | po.deleted = false;//默认不删除 |
| | | if (!StringUtils.isNullOrEmpty(po.password)) { |
| | | /* |
| | |
| | | } |
| | | |
| | | /** |
| | | * 禁用或启用用户信息 |
| | | * @param po |
| | | * @return |
| | | */ |
| | | @PostMapping(path="disabled") |
| | | @SsoPowerAop(power = "10100011") |
| | | @Log("禁用或启用用户信息") |
| | | public BaseResponse<BaRole> disabled(@RequestBody BaUser po){ |
| | | try { |
| | | return BaseResponseUtils.buildSuccess(sv.disabled(po.id,po.disabled)); |
| | | }catch (Exception e){ |
| | | log.error("禁用或启用用户信息异常", e); |
| | | return BaseResponseUtils.buildException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除用户信息 |
| | | * @param id |
| | | * @return |