分页修改
This commit is contained in:
parent
648bf33b9a
commit
7dbe8e0adb
|
|
@ -1,10 +1,12 @@
|
|||
package com.bonus.gzgqj.business.plan.controller;
|
||||
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import com.bonus.gzgqj.business.plan.entity.ProDevSelect;
|
||||
import com.bonus.gzgqj.business.plan.entity.ProNeedInfo;
|
||||
import com.bonus.gzgqj.business.plan.entity.ProPlanInfoVo;
|
||||
import com.bonus.gzgqj.business.plan.service.PlanOutService;
|
||||
import com.bonus.gzgqj.manager.annotation.DecryptAndVerify;
|
||||
import com.bonus.gzgqj.manager.common.util.ServletUtils;
|
||||
import com.bonus.gzgqj.manager.core.entity.EncryptedReq;
|
||||
import com.bonus.gzgqj.manager.webResult.ServerResponse;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
|
|
@ -48,7 +50,7 @@ public class PlanOutController {
|
|||
@GetMapping("getProPlanPage")
|
||||
@DecryptAndVerify(decryptedClass = ProPlanInfoVo.class)
|
||||
public PageInfo<ProPlanInfoVo> getProPlanPage(EncryptedReq<ProPlanInfoVo> dto) {
|
||||
PageHelper.startPage(dto.getData().getPageNum(),dto.getData().getPageSize());
|
||||
PageHelper.startPage(dto.getPageNum(),dto.getPageSize());
|
||||
PageInfo<ProPlanInfoVo> pageInfo = service.getProPlanPage(dto.getData());;
|
||||
return pageInfo;
|
||||
}
|
||||
|
|
@ -91,5 +93,20 @@ public class PlanOutController {
|
|||
|
||||
|
||||
|
||||
// /**
|
||||
// * 发货接口
|
||||
// * @return
|
||||
// */
|
||||
// @PostMapping("getOutDetails")
|
||||
// @DecryptAndVerify(decryptedClass = ProNeedInfo.class)
|
||||
// public PageInfo<ProNeedInfo> getOutDetails(EncryptedReq<ProNeedInfo> dto) {
|
||||
// PageHelper.startPage(dto.getData().getPageNum(),dto.getData().getPageSize());
|
||||
// PageInfo<ProNeedInfo> pageInfo = service.getProPlanPage(dto.getData());;
|
||||
// return pageInfo;
|
||||
// }
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,4 +44,11 @@ public interface PlanOutService {
|
|||
* @return
|
||||
*/
|
||||
ServerResponse getStatistics();
|
||||
|
||||
/**
|
||||
* 查看发货详情接口
|
||||
* @param data
|
||||
* @return
|
||||
*/
|
||||
ServerResponse getOutDetails(String data);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -188,6 +188,20 @@ public class PlanOutServiceImpl implements PlanOutService{
|
|||
return ServerResponse.createSuccess(map);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询出库货单详情
|
||||
* @param data
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ServerResponse getOutDetails(String data) {
|
||||
try{
|
||||
|
||||
}catch (Exception e){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public boolean planOutInfo(List<ProOutDetail> list,ProOutInfoVo vo,int allFhNum, int allTzNum){
|
||||
try {
|
||||
for (ProOutDetail details:list){
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import lombok.Data;
|
|||
@Data
|
||||
public class EncryptedReq<T> {
|
||||
/** 签名 */
|
||||
|
||||
private String sign;
|
||||
/** 加密请求数据 */
|
||||
|
||||
|
|
@ -15,5 +14,15 @@ public class EncryptedReq<T> {
|
|||
/** 请求的时间戳 */
|
||||
|
||||
private Long timestamp;
|
||||
|
||||
/** 请求的时间戳 */
|
||||
|
||||
private Integer pageNum =1;
|
||||
/** 请求的时间戳 */
|
||||
|
||||
private Integer pageSize=10;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue