Commit d00781b4 by qwmqiuwenmin

fix

parent 58b78172
......@@ -4,10 +4,13 @@ import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSON;
import com.gic.api.base.commons.Page;
import com.gic.haoban.base.api.common.BasePageInfo;
import com.gic.haoban.base.api.common.PageResult;
......@@ -24,6 +27,7 @@ import com.gic.haoban.manage.web.vo.LoginVO;
@RestController
public class StaffController extends WebBaseController{
private static Logger logger = LoggerFactory.getLogger(StaffController.class);
@Autowired
private StaffApiService staffApiService;
......@@ -66,6 +70,7 @@ public class StaffController extends WebBaseController{
@RequestMapping("staff-list")
public HaobanResponse staffList(String departmentId,Integer activeFlag,String keyword,BasePageInfo pageInfo){
Page<StaffDTO> page = staffApiService.pageStaff(departmentId,activeFlag,keyword,pageInfo);
logger.info("【员工列表】page",JSON.toJSONString(page));
PageResult<StaffDTO> pageVo = new PageResult<>();
pageVo.setList(page.getResult());
pageVo.setPageNum(page.getCurrentPage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment