|
|
@ -1,6 +1,5 @@
|
|
|
|
package com.glxp.api.controller.purchase;
|
|
|
|
package com.glxp.api.controller.purchase;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
import com.glxp.api.annotation.AuthRuleAnnotation;
|
|
|
|
import com.glxp.api.annotation.AuthRuleAnnotation;
|
|
|
@ -11,7 +10,6 @@ import com.glxp.api.constant.Constant;
|
|
|
|
import com.glxp.api.constant.ConstantStatus;
|
|
|
|
import com.glxp.api.constant.ConstantStatus;
|
|
|
|
import com.glxp.api.constant.ConstantType;
|
|
|
|
import com.glxp.api.constant.ConstantType;
|
|
|
|
import com.glxp.api.entity.basic.BasicBusTypeChangeEntity;
|
|
|
|
import com.glxp.api.entity.basic.BasicBusTypeChangeEntity;
|
|
|
|
import com.glxp.api.entity.basic.BasicCorpEntity;
|
|
|
|
|
|
|
|
import com.glxp.api.entity.basic.BasicProductsEntity;
|
|
|
|
import com.glxp.api.entity.basic.BasicProductsEntity;
|
|
|
|
import com.glxp.api.entity.inout.IoOrderDetailBizEntity;
|
|
|
|
import com.glxp.api.entity.inout.IoOrderDetailBizEntity;
|
|
|
|
import com.glxp.api.entity.inout.IoOrderEntity;
|
|
|
|
import com.glxp.api.entity.inout.IoOrderEntity;
|
|
|
@ -21,13 +19,10 @@ import com.glxp.api.req.purchase.PurApplyDetailRequest;
|
|
|
|
import com.glxp.api.req.purchase.PurPlanDetailRequest;
|
|
|
|
import com.glxp.api.req.purchase.PurPlanDetailRequest;
|
|
|
|
import com.glxp.api.req.purchase.PurPlanRequest;
|
|
|
|
import com.glxp.api.req.purchase.PurPlanRequest;
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
import com.glxp.api.res.basic.UdiRelevanceResponse;
|
|
|
|
|
|
|
|
import com.glxp.api.res.purchase.PurOrderDetailResponse;
|
|
|
|
import com.glxp.api.res.purchase.PurOrderDetailResponse;
|
|
|
|
import com.glxp.api.res.purchase.PurPlanResponse;
|
|
|
|
import com.glxp.api.res.purchase.PurPlanResponse;
|
|
|
|
import com.glxp.api.service.auth.CustomerService;
|
|
|
|
import com.glxp.api.service.auth.CustomerService;
|
|
|
|
import com.glxp.api.service.basic.BasicCorpService;
|
|
|
|
|
|
|
|
import com.glxp.api.service.basic.IBasicBusTypeChangeService;
|
|
|
|
import com.glxp.api.service.basic.IBasicBusTypeChangeService;
|
|
|
|
import com.glxp.api.service.basic.UdiRelevanceService;
|
|
|
|
|
|
|
|
import com.glxp.api.service.inout.IoOrderDetailBizService;
|
|
|
|
import com.glxp.api.service.inout.IoOrderDetailBizService;
|
|
|
|
import com.glxp.api.service.inout.IoOrderService;
|
|
|
|
import com.glxp.api.service.inout.IoOrderService;
|
|
|
|
import com.glxp.api.service.purchase.*;
|
|
|
|
import com.glxp.api.service.purchase.*;
|
|
|
@ -189,7 +184,7 @@ public class PurPlanController {
|
|
|
|
purPlanEntity.setAuditUser(userId + "");
|
|
|
|
purPlanEntity.setAuditUser(userId + "");
|
|
|
|
purPlanEntity.setAuditUser(userId + "");
|
|
|
|
purPlanEntity.setAuditUser(userId + "");
|
|
|
|
purPlanEntity.setStatus(postPurPlanRequest.getEditStatus());
|
|
|
|
purPlanEntity.setStatus(postPurPlanRequest.getEditStatus());
|
|
|
|
purPlanService.update(purPlanEntity);
|
|
|
|
purPlanService.update(purPlanEntity);
|
|
|
|
if (purPlanEntity.getStatus() == 3) {
|
|
|
|
if (purPlanEntity.getStatus() == 3) {
|
|
|
|
purChangeService.purPlanChange(purPlanEntity);
|
|
|
|
purChangeService.purPlanChange(purPlanEntity);
|
|
|
|
// generateDocument(purPlanEntity);
|
|
|
|
// generateDocument(purPlanEntity);
|
|
|
@ -388,6 +383,19 @@ public class PurPlanController {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 查询采购计划详情列表
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param purPlanDetailRequest
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@GetMapping("/purchase/plan/list/getDetailList")
|
|
|
|
|
|
|
|
public BaseResponse getDetailList(PurPlanDetailRequest purPlanDetailRequest) {
|
|
|
|
|
|
|
|
List<PurOrderDetailResponse> list = purPlanDetailService.getDetailList(purPlanDetailRequest);
|
|
|
|
|
|
|
|
PageInfo<PurOrderDetailResponse> pageInfo = new PageInfo<>(list);
|
|
|
|
|
|
|
|
return ResultVOUtils.page(pageInfo);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 添加申购单到采购单里面
|
|
|
|
* 添加申购单到采购单里面
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|