| | |
| | | |
| | | import com.iplatform.base.PushController; |
| | | import com.iplatform.base.PushData; |
| | | import com.iplatform.base.pojo.UserParam; |
| | | import com.iplatform.base.service.UserServiceImpl; |
| | | import com.iplatform.model.po.S_user_core; |
| | | import com.walker.db.page.GenericPager; |
| | |
| | | import com.walker.infrastructure.utils.JsonUtils; |
| | | import com.walker.web.ResponseValue; |
| | | import com.walker.web.WebRuntimeException; |
| | | import com.walker.web.log.BusinessType; |
| | | import com.walker.web.log.Log; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.jdbc.core.JdbcTemplate; |
| | | import org.springframework.security.core.parameters.P; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | this.userService = userService; |
| | | } |
| | | |
| | | @Log(title = "测试分页列表", businessType = BusinessType.Delete, isSaveRequestData = true, isSaveResponseData = true) |
| | | @GetMapping("/list") |
| | | public ResponseValue list(UserParam userParam){ |
| | | try { |
| | | logger.debug("userParam = {}", JsonUtils.objectToJsonString(userParam)); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | GenericPager<S_user_core> pager = this.userService.queryPageUserList(0 |
| | | , 0, userParam.getUserName(), userParam.getPhonenumber(), userParam.getStatus()); |
| | | return ResponseValue.success(pager); |
| | | } |
| | | |
| | | @RequestMapping("/push_msg") |
| | | public ResponseValue testPushMessage() throws Exception{ |
| | | |