| | |
| | | @Bean |
| | | fun runner() = ApplicationRunner { |
| | | webSocketServer.start() |
| | | // taskController.run() |
| | | taskController.run() |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | return UserBaseInfo(userId, userInfo.realname, baseInfo, companyInfo, specialInfo) |
| | | } |
| | | |
| | | override fun search(district: String?, sceneType: Int?, userType: Int?, page: Int, perPage: Int): BaseResponse<List<Userinfo>> { |
| | | val result = userinfoMapper.selectByExample(Example(Userinfo::class.java).apply { |
| | | createCriteria().apply { |
| | | district?.let { andEqualTo("extension1", it) } |
| | | sceneType?.let { andEqualTo("extension2", it) } |
| | | userType?.let { andEqualTo("usertypeid", it) } |
| | | } |
| | | }) |
| | | |
| | | return BaseResponse(true, data = result) |
| | | } |
| | | } |
| | |
| | | |
| | | fun getBaseInfo(userId: String): UserBaseInfo |
| | | |
| | | fun search(district: String?, sceneType: Int?, userType: Int?, page: Int, perPage: Int): BaseResponse<List<Userinfo>> |
| | | |
| | | } |
| | |
| | | import cn.flightfeather.supervision.lightshare.vo.UserSearchCondition |
| | | import io.swagger.annotations.Api |
| | | import io.swagger.annotations.ApiOperation |
| | | import io.swagger.annotations.ApiParam |
| | | import org.springframework.web.bind.annotation.* |
| | | import org.springframework.web.multipart.MultipartFile |
| | | import javax.servlet.http.HttpServletResponse |
| | |
| | | fun getBaseInfo( |
| | | @RequestParam("userId") userId: String |
| | | ) = userinfoService.getBaseInfo(userId) |
| | | |
| | | @ApiOperation(value = "根据给定条件,搜索用户") |
| | | @GetMapping("/search") |
| | | fun search( |
| | | @ApiParam("区县", example = "徐汇区") @RequestParam("district", required = false) district: String, |
| | | @ApiParam("场景类型", example = "1", allowableValues = "0,1,2,3,4,5,6,7") @RequestParam("sceneType", required = false) sceneType: Int, |
| | | @ApiParam("用户类型", example = "0", allowableValues = "0,1,2,3") @RequestParam("userType", required = false) userType: Int, |
| | | @RequestParam(value = "page") page: Int, |
| | | @RequestParam(value = "per_page") perPage: Int, |
| | | ) = userinfoService.search(district, sceneType, userType, page, perPage) |
| | | } |
| | |
| | | |
| | | @Test |
| | | fun go() { |
| | | autoScore.go(2021, 7) |
| | | autoScore.go(2021, 10) |
| | | } |
| | | } |