|
@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
|
+import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -247,4 +248,15 @@ public class BackgroundProcessingController extends BaseRESTfulController {
|
|
}
|
|
}
|
|
return success(1);
|
|
return success(1);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "强制重置密码接口")
|
|
|
|
+ @PostMapping("resetPassword")
|
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
|
+ public RESTfulResult resetPassword(@RequestBody(required = false) Map<String,Object> map) throws Exception{
|
|
|
|
+ if (map.get("userNameCode") != null) {
|
|
|
|
+ backgroundProcessingMapper.updateSysUser(map);
|
|
|
|
+ backgroundProcessingMapper.updateSysUserLogin(map);
|
|
|
|
+ }
|
|
|
|
+ return success(1);
|
|
|
|
+ }
|
|
}
|
|
}
|