新增新购模块枚举
This commit is contained in:
parent
e48ddb3d85
commit
56f09fd5c7
|
|
@ -49,6 +49,17 @@ public class SupplierInfoController extends BaseController {
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询物资厂家--下拉框--不分页
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询物资厂家下拉框--不分页")
|
||||||
|
@RequiresPermissions("ma:info:list")
|
||||||
|
@GetMapping("/select")
|
||||||
|
public TableDataInfo select(SupplierInfo supplierInfo) {
|
||||||
|
List<SupplierInfo> list = supplierInfoService.selectSupplierInfoList(supplierInfo);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导出物资厂家管理列表
|
* 导出物资厂家管理列表
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,44 @@
|
||||||
|
package com.bonus.material.purchase.config;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author : 阮世耀
|
||||||
|
* @version : 1.0
|
||||||
|
* @PackagePath: com.bonus.material.purchase.config
|
||||||
|
* @CreateTime: 2024-10-21 16:13
|
||||||
|
* @Description: 新购模块阶段枚举
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
public enum PurchaseModelEnum {
|
||||||
|
|
||||||
|
PURCHASE_MODEL_MANAGE("新购管理"),
|
||||||
|
PURCHASE_MODEL_CONFIRM("新购确认"),
|
||||||
|
PURCHASE_MODEL_CHECK("新购验收"),
|
||||||
|
PURCHASE_MODEL_BIND("新购绑定"),
|
||||||
|
PURCHASE_MODEL_STORE("新购入库");
|
||||||
|
|
||||||
|
private final String modelName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 定义构造函数
|
||||||
|
* @param modelName 模块名称
|
||||||
|
*/
|
||||||
|
PurchaseModelEnum(String modelName) {
|
||||||
|
this.modelName = modelName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 判断传入的参数是否存在于枚举类中
|
||||||
|
* @return 如果存在返回 true,否则返回 false
|
||||||
|
*/
|
||||||
|
public static boolean containsModelName(String modelName) {
|
||||||
|
for (PurchaseModelEnum model : PurchaseModelEnum.values()) {
|
||||||
|
if (model.getModelName().equals(modelName)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -49,7 +49,6 @@ public class PurchaseNoticePersonController extends BaseController {
|
||||||
@RequiresPermissions("purchase:person:list")
|
@RequiresPermissions("purchase:person:list")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(PurchaseNoticePerson purchaseNoticePerson) {
|
public TableDataInfo list(PurchaseNoticePerson purchaseNoticePerson) {
|
||||||
startPage();
|
|
||||||
List<PurchaseNoticePerson> list = purchaseNoticePersonService.selectPurchaseNoticePersonList(purchaseNoticePerson);
|
List<PurchaseNoticePerson> list = purchaseNoticePersonService.selectPurchaseNoticePersonList(purchaseNoticePerson);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
package com.bonus.material.purchase.domain;
|
package com.bonus.material.purchase.domain;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
|
import com.bonus.material.purchase.config.PurchaseModelEnum;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.bonus.common.core.annotation.Excel;
|
import com.bonus.common.core.annotation.Excel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
@ -70,4 +72,7 @@ public class PurchaseCheckInfo extends BaseEntity {
|
||||||
@ApiModelProperty(value = "操作人名称")
|
@ApiModelProperty(value = "操作人名称")
|
||||||
private String createUserName;
|
private String createUserName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "新购模块阶段名称")
|
||||||
|
private PurchaseModelEnum modelName;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,5 +41,8 @@ public class PurchaseNoticePerson extends BaseEntity {
|
||||||
@ApiModelProperty(value = "联系电话")
|
@ApiModelProperty(value = "联系电话")
|
||||||
private String telphone;
|
private String telphone;
|
||||||
|
|
||||||
|
/** 任务id */
|
||||||
|
@ApiModelProperty("任务id")
|
||||||
|
private String taskId;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue