-报价中标流程发起,中标回调
parent
dd2ca3e24b
commit
55e0897633
10
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/QuotationSheetBiddingController.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/QuotationSheetBiddingController.java
10
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/QuotationSheetBiddingController.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/QuotationSheetBiddingController.java
2
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingBaseVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingBaseVO.java
2
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingBaseVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingBaseVO.java
@ -1,4 +1,4 @@
|
|||||||
package cn.iocoder.yudao.module.bs.controller.admin.quotationsheetbidding.vo;
|
package cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.pojo.ImageVo;
|
import cn.iocoder.yudao.framework.common.pojo.ImageVo;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
4
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingCreateReqVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingCreateReqVO.java
4
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingCreateReqVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingCreateReqVO.java
@ -1,9 +1,7 @@
|
|||||||
package cn.iocoder.yudao.module.bs.controller.admin.quotationsheetbidding.vo;
|
package cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo;
|
||||||
|
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import java.util.*;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import javax.validation.constraints.*;
|
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 报价单物料中标创建 Request VO")
|
@Schema(description = "管理后台 - 报价单物料中标创建 Request VO")
|
||||||
@Data
|
@Data
|
2
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingExcelVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingExcelVO.java
2
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingExcelVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingExcelVO.java
@ -1,4 +1,4 @@
|
|||||||
package cn.iocoder.yudao.module.bs.controller.admin.quotationsheetbidding.vo;
|
package cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.pojo.ImageVo;
|
import cn.iocoder.yudao.framework.common.pojo.ImageVo;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
2
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingExportReqVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingExportReqVO.java
2
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingExportReqVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingExportReqVO.java
@ -1,4 +1,4 @@
|
|||||||
package cn.iocoder.yudao.module.bs.controller.admin.quotationsheetbidding.vo;
|
package cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.pojo.ImageVo;
|
import cn.iocoder.yudao.framework.common.pojo.ImageVo;
|
||||||
import lombok.*;
|
import lombok.*;
|
2
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingPageReqVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingPageReqVO.java
2
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingPageReqVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingPageReqVO.java
@ -1,4 +1,4 @@
|
|||||||
package cn.iocoder.yudao.module.bs.controller.admin.quotationsheetbidding.vo;
|
package cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.pojo.ImageVo;
|
import cn.iocoder.yudao.framework.common.pojo.ImageVo;
|
||||||
import lombok.*;
|
import lombok.*;
|
2
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingRespVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingRespVO.java
2
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingRespVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingRespVO.java
@ -1,4 +1,4 @@
|
|||||||
package cn.iocoder.yudao.module.bs.controller.admin.quotationsheetbidding.vo;
|
package cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.*;
|
import lombok.*;
|
4
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingUpdateReqVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingUpdateReqVO.java
4
yudao-module-bs/yudao-module-bs-biz/src/main/java/cn/iocoder/yudao/module/bs/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingUpdateReqVO.java → yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/quotationsheetbidding/vo/QuotationSheetBiddingUpdateReqVO.java
@ -1,8 +1,8 @@
|
|||||||
package cn.iocoder.yudao.module.bs.controller.admin.quotationsheetbidding.vo;
|
package cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import java.util.*;
|
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 报价单物料中标更新 Request VO")
|
@Schema(description = "管理后台 - 报价单物料中标更新 Request VO")
|
@ -1,12 +1,15 @@
|
|||||||
package cn.iocoder.yudao.module.bs.convert.quotationsheetbidding;
|
package cn.iocoder.yudao.module.bpm.convert.quotationsheetbidding;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo.QuotationSheetBiddingCreateReqVO;
|
||||||
|
import cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo.QuotationSheetBiddingExcelVO;
|
||||||
|
import cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo.QuotationSheetBiddingRespVO;
|
||||||
|
import cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo.QuotationSheetBiddingUpdateReqVO;
|
||||||
import org.mapstruct.Mapper;
|
import org.mapstruct.Mapper;
|
||||||
import org.mapstruct.factory.Mappers;
|
import org.mapstruct.factory.Mappers;
|
||||||
import cn.iocoder.yudao.module.bs.controller.admin.quotationsheetbidding.vo.*;
|
|
||||||
import cn.iocoder.yudao.module.bs.dal.dataobject.quotationsheetbidding.QuotationSheetBiddingDO;
|
import cn.iocoder.yudao.module.bs.dal.dataobject.quotationsheetbidding.QuotationSheetBiddingDO;
|
||||||
|
|
||||||
/**
|
/**
|
@ -0,0 +1,30 @@
|
|||||||
|
package cn.iocoder.yudao.module.bpm.service.oa.listener;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.module.bpm.framework.bpm.core.event.BpmProcessInstanceResultEvent;
|
||||||
|
import cn.iocoder.yudao.module.bpm.framework.bpm.core.event.BpmProcessInstanceResultEventListener;
|
||||||
|
import cn.iocoder.yudao.module.bpm.service.quotationsheet.QuotationSheetService;
|
||||||
|
import cn.iocoder.yudao.module.bpm.service.quotationsheet.QuotationSheetServiceImpl;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 监听
|
||||||
|
* @author MrFang
|
||||||
|
* @date 2023年08月28日 10:42
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class QuotationSheetBiddingResultListener extends BpmProcessInstanceResultEventListener{
|
||||||
|
@Resource
|
||||||
|
private QuotationSheetService quotationSheetService;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String getProcessDefinitionKey() {
|
||||||
|
return QuotationSheetServiceImpl.BIDDING_KEY;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onEvent(BpmProcessInstanceResultEvent event) {
|
||||||
|
quotationSheetService.processInstanceCallBack2(Long.parseLong(event.getBusinessKey()), event.getResult());
|
||||||
|
}
|
||||||
|
}
|
@ -1,11 +1,14 @@
|
|||||||
package cn.iocoder.yudao.module.bs.service.quotationsheetbidding;
|
package cn.iocoder.yudao.module.bpm.service.quotationsheetbidding;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import javax.validation.*;
|
import javax.validation.*;
|
||||||
import cn.iocoder.yudao.module.bs.controller.admin.quotationsheetbidding.vo.*;
|
|
||||||
|
import cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo.QuotationSheetBiddingCreateReqVO;
|
||||||
|
import cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo.QuotationSheetBiddingExportReqVO;
|
||||||
|
import cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo.QuotationSheetBiddingPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.bpm.controller.admin.quotationsheetbidding.vo.QuotationSheetBiddingUpdateReqVO;
|
||||||
import cn.iocoder.yudao.module.bs.dal.dataobject.quotationsheetbidding.QuotationSheetBiddingDO;
|
import cn.iocoder.yudao.module.bs.dal.dataobject.quotationsheetbidding.QuotationSheetBiddingDO;
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
import cn.iocoder.yudao.module.bs.dal.dataobject.suppliercompany.SupplierCompanyDO;
|
|
||||||
import com.github.yulichang.base.MPJBaseService;
|
import com.github.yulichang.base.MPJBaseService;
|
||||||
|
|
||||||
/**
|
/**
|
@ -0,0 +1,31 @@
|
|||||||
|
package cn.iocoder.yudao.module.bs.enums;
|
||||||
|
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报价单工作流枚举
|
||||||
|
*/
|
||||||
|
@AllArgsConstructor
|
||||||
|
@Getter
|
||||||
|
public enum QuotationSheetBiddingEnum {
|
||||||
|
|
||||||
|
CONFIRM("1", "中标"),
|
||||||
|
NO_CONFIRM("2", "未中标"),
|
||||||
|
|
||||||
|
ABANDON("3", "流标"),
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 类型
|
||||||
|
*/
|
||||||
|
private final String value;
|
||||||
|
/**
|
||||||
|
* 类型名
|
||||||
|
*/
|
||||||
|
private final String name;
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue