CRM-合同: 新增更新合同商品如果有关联商机的话则更新商机商品
parent
84f3b230d2
commit
9caaa96e5b
@ -0,0 +1,25 @@
|
|||||||
|
package cn.iocoder.yudao.module.crm.controller.admin.customer.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 客户导入 Request VO")
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
public class CrmCustomerImportReqVO {
|
||||||
|
|
||||||
|
@Schema(description = "Excel 文件", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@NotNull(message = "Excel 文件不能为空")
|
||||||
|
private MultipartFile file;
|
||||||
|
|
||||||
|
@Schema(description = "是否支持更新", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
|
||||||
|
@NotNull(message = "是否支持更新不能为空")
|
||||||
|
private Boolean updateSupport;
|
||||||
|
|
||||||
|
@Schema(description = "负责人", example = "1")
|
||||||
|
private Long ownerUserId; // 为 null 则客户进入公海
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,48 @@
|
|||||||
|
package cn.iocoder.yudao.module.crm.service.business.bo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotEmpty;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新商机商品 Update Req BO
|
||||||
|
*
|
||||||
|
* @author HUIHUI
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class CrmBusinessUpdateProductReqBO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商机编号
|
||||||
|
*/
|
||||||
|
@NotNull(message = "商机编号不能为空")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@NotEmpty(message = "产品列表不能为空")
|
||||||
|
private List<CrmBusinessProductItem> productItems;
|
||||||
|
|
||||||
|
@Schema(description = "产品列表")
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public static class CrmBusinessProductItem {
|
||||||
|
|
||||||
|
@Schema(description = "产品编号", example = "20529")
|
||||||
|
@NotNull(message = "产品编号不能为空")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "产品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "8911")
|
||||||
|
@NotNull(message = "产品数量不能为空")
|
||||||
|
private Integer count;
|
||||||
|
|
||||||
|
@Schema(description = "产品折扣")
|
||||||
|
private Integer discountPercent;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue