物料信息
This commit is contained in:
@@ -36,10 +36,10 @@ public class MtrlClsController implements BusinessControllerMarker {
|
||||
@Resource
|
||||
private MtrlClsService mtrlClsService;
|
||||
|
||||
@GetMapping("/list")
|
||||
@PostMapping("/list")
|
||||
@Operation(summary = "获得物料分类列表")
|
||||
@PreAuthorize("@ss.hasPermission('lgst:mtrl-cls:query')")
|
||||
public CommonResult<List<MtrlClsRespVO>> getMtrlClsList(@Valid MtrlClsListReqVO listReqVO) {
|
||||
public CommonResult<List<MtrlClsRespVO>> getMtrlClsList(@Valid @RequestBody MtrlClsListReqVO listReqVO) {
|
||||
List<MtrlClsDO> list = mtrlClsService.getMtrlClsList(listReqVO);
|
||||
return success(BeanUtils.toBean(list, MtrlClsRespVO.class));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.mtrl;
|
||||
|
||||
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.mtrl.vo.MtrlXpdPageReqVO;
|
||||
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.mtrl.vo.MtrlXpdRespVO;
|
||||
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.mtrl.vo.MtrlXpdSaveReqVO;
|
||||
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.mtrl.MtrlXpdDO;
|
||||
import cn.iocoder.yudao.module.backendlogistics.service.bseMngt.mtrl.MtrlClsService;
|
||||
import cn.iocoder.yudao.module.backendlogistics.service.bseMngt.mtrl.MtrlXpdService;
|
||||
import jakarta.annotation.security.PermitAll;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import cn.iocoder.yudao.framework.business.interceptor.BusinessControllerMarker;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
|
||||
@Tag(name = "管理后台 - 物资信息扩展")
|
||||
@RestController
|
||||
@RequestMapping("/lgst/mtrl-xpd")
|
||||
@Validated
|
||||
public class MtrlXpdController implements BusinessControllerMarker {
|
||||
|
||||
|
||||
@Resource
|
||||
private MtrlXpdService mtrlXpdService;
|
||||
|
||||
@PostMapping("/update")
|
||||
@Operation(summary = "更新物资信息扩展")
|
||||
@PreAuthorize("@ss.hasPermission('lgst:mtrl-xpd:update')")
|
||||
// @PermitAll
|
||||
public CommonResult<Boolean> updateMtrlXpd(@Valid @RequestBody List<MtrlXpdSaveReqVO> updateReqVOs) {
|
||||
mtrlXpdService.updateMtrlXpd(updateReqVOs);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/page")
|
||||
@Operation(summary = "获得物资信息分页")
|
||||
@PreAuthorize("@ss.hasPermission('lgst:mtrl-xpd:query')")
|
||||
public CommonResult<PageResult<MtrlXpdRespVO>> getMtrlXpdPage(@Valid @RequestBody MtrlXpdPageReqVO pageReqVO) {
|
||||
PageResult<MtrlXpdRespVO> pageResult = mtrlXpdService.getMtrlXpdPage(pageReqVO);
|
||||
return success(pageResult);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.mtrl.vo;
|
||||
|
||||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 物资信息扩展分页 Request VO")
|
||||
@Data
|
||||
public class MtrlXpdPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "物资ID", example = "10845")
|
||||
private Long materialId;
|
||||
|
||||
@Schema(description = "物资编码")
|
||||
@ExcelProperty("物资编码")
|
||||
private String materialCode;
|
||||
|
||||
@Schema(description = "物资名称")
|
||||
@ExcelProperty("物资名称")
|
||||
private String materialName;
|
||||
|
||||
@Schema(description = "SAP编码")
|
||||
private String sapCode;
|
||||
|
||||
@Schema(description = "MDM编码")
|
||||
private String mdmCode;
|
||||
|
||||
@Schema(description = "长描述")
|
||||
private String description;
|
||||
|
||||
@Schema(description = "分类id")
|
||||
private Long classesId;
|
||||
|
||||
@Schema(description = "质检标志")
|
||||
private String inspectionFlag;
|
||||
|
||||
@Schema(description = "计量标志")
|
||||
private String meteringFlag;
|
||||
|
||||
@Schema(description = "取样节点")
|
||||
private String samplingNode;
|
||||
|
||||
@Schema(description = "部门id")
|
||||
private Long deptId;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.mtrl.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
|
||||
import java.beans.Transient;
|
||||
import java.io.Serializable;
|
||||
import java.util.*;
|
||||
|
||||
import net.sf.jsqlparser.statement.select.WithItem;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 物资信息扩展 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class MtrlXpdRespVO{
|
||||
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13011")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "物资ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10845")
|
||||
@ExcelProperty("物资ID")
|
||||
private Long materialId;
|
||||
|
||||
@Schema(description = "物资编码")
|
||||
@ExcelProperty("物资编码")
|
||||
private String materialCode;
|
||||
|
||||
@Schema(description = "物资名称")
|
||||
@ExcelProperty("物资名称")
|
||||
private String materialName;
|
||||
|
||||
@Schema(description = "SAP编码")
|
||||
@ExcelProperty("SAP编码")
|
||||
private String sapCode;
|
||||
|
||||
@Schema(description = "MDM编码")
|
||||
@ExcelProperty("MDM编码")
|
||||
private String mdmCode;
|
||||
|
||||
@Schema(description = "长描述")
|
||||
@ExcelProperty("长描述")
|
||||
private String description;
|
||||
|
||||
@Schema(description = "大类代码")
|
||||
@ExcelProperty("大类代码")
|
||||
private String bigTypeCode;
|
||||
|
||||
@Schema(description = "大类名称", example = "王五")
|
||||
@ExcelProperty("大类名称")
|
||||
private String bigTypeName;
|
||||
|
||||
@Schema(description = "中类代码")
|
||||
@ExcelProperty("中类代码")
|
||||
private String midTypeCode;
|
||||
|
||||
@Schema(description = "中类名称", example = "芋艿")
|
||||
@ExcelProperty("中类名称")
|
||||
private String midTypeName;
|
||||
|
||||
@Schema(description = "小类代码")
|
||||
@ExcelProperty("小类代码")
|
||||
private String smalTypeCode;
|
||||
|
||||
@Schema(description = "小类名称", example = "王五")
|
||||
@ExcelProperty("小类名称")
|
||||
private String smalTypeName;
|
||||
|
||||
@Schema(description = "质检标志")
|
||||
@ExcelProperty("质检标志")
|
||||
private String inspectionFlag;
|
||||
|
||||
@Schema(description = "计量标志")
|
||||
@ExcelProperty("计量标志")
|
||||
private String meteringFlag;
|
||||
|
||||
@Schema(description = "取样节点")
|
||||
@ExcelProperty("取样节点")
|
||||
private String samplingNode;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.mtrl.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 物资信息扩展新增/修改 Request VO")
|
||||
@Data
|
||||
public class MtrlXpdSaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13011")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "物资ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10845")
|
||||
@NotNull(message = "物资ID不能为空")
|
||||
private Long materialId;
|
||||
|
||||
@Schema(description = "质检标志")
|
||||
private String inspectionFlag;
|
||||
|
||||
@Schema(description = "计量标志")
|
||||
private String meteringFlag;
|
||||
|
||||
@Schema(description = "取样节点")
|
||||
private String samplingNode;
|
||||
|
||||
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,60 @@
|
||||
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.rlwyMtrl.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import java.math.BigDecimal;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 铁路物资对照主分页 Request VO")
|
||||
@Data
|
||||
public class RlwyMtrlMainPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "状态")
|
||||
private String sts;
|
||||
|
||||
@Schema(description = "铁路运输品名", example = "张三")
|
||||
private String rlwyTrpName;
|
||||
|
||||
@Schema(description = "品名代码")
|
||||
private String nameCd;
|
||||
|
||||
@Schema(description = "拼音码")
|
||||
private String pyCd;
|
||||
|
||||
@Schema(description = "报价费率")
|
||||
private BigDecimal chrgRte;
|
||||
|
||||
@Schema(description = "整车价号")
|
||||
private String exPrcCd;
|
||||
|
||||
@Schema(description = "零担价号")
|
||||
private String prtlPrcCd;
|
||||
|
||||
@Schema(description = "大类代码")
|
||||
private String bigTpCd;
|
||||
|
||||
@Schema(description = "大类名称", example = "李四")
|
||||
private String bigTpName;
|
||||
|
||||
@Schema(description = "中类代码")
|
||||
private String midTpCd;
|
||||
|
||||
@Schema(description = "中类名称", example = "芋艿")
|
||||
private String midTpName;
|
||||
|
||||
@Schema(description = "小类代码")
|
||||
private String smalTpCd;
|
||||
|
||||
@Schema(description = "小类名称", example = "王五")
|
||||
private String smalTpName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.rlwyMtrl.vo;
|
||||
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.math.BigDecimal;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 铁路物资对照主 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class RlwyMtrlMainRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3659")
|
||||
@ExcelProperty("ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "状态")
|
||||
@ExcelProperty("状态")
|
||||
private String sts;
|
||||
|
||||
@Schema(description = "铁路运输品名", example = "张三")
|
||||
@ExcelProperty("铁路运输品名")
|
||||
private String rlwyTrpName;
|
||||
|
||||
@Schema(description = "品名代码")
|
||||
@ExcelProperty("品名代码")
|
||||
private String nameCd;
|
||||
|
||||
@Schema(description = "拼音码")
|
||||
@ExcelProperty("拼音码")
|
||||
private String pyCd;
|
||||
|
||||
@Schema(description = "报价费率")
|
||||
@ExcelProperty("报价费率")
|
||||
private BigDecimal chrgRte;
|
||||
|
||||
@Schema(description = "整车价号")
|
||||
@ExcelProperty("整车价号")
|
||||
private String exPrcCd;
|
||||
|
||||
@Schema(description = "零担价号")
|
||||
@ExcelProperty("零担价号")
|
||||
private String prtlPrcCd;
|
||||
|
||||
@Schema(description = "大类代码")
|
||||
@ExcelProperty("大类代码")
|
||||
private String bigTpCd;
|
||||
|
||||
@Schema(description = "大类名称", example = "李四")
|
||||
@ExcelProperty("大类名称")
|
||||
private String bigTpName;
|
||||
|
||||
@Schema(description = "中类代码")
|
||||
@ExcelProperty("中类代码")
|
||||
private String midTpCd;
|
||||
|
||||
@Schema(description = "中类名称", example = "芋艿")
|
||||
@ExcelProperty("中类名称")
|
||||
private String midTpName;
|
||||
|
||||
@Schema(description = "小类代码")
|
||||
@ExcelProperty("小类代码")
|
||||
private String smalTpCd;
|
||||
|
||||
@Schema(description = "小类名称", example = "王五")
|
||||
@ExcelProperty("小类名称")
|
||||
private String smalTpName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.rlwyMtrl.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Schema(description = "管理后台 - 铁路物资对照主新增/修改 Request VO")
|
||||
@Data
|
||||
public class RlwyMtrlMainSaveReqVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3659")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "状态")
|
||||
private String sts;
|
||||
|
||||
@Schema(description = "铁路运输品名", example = "张三")
|
||||
private String rlwyTrpName;
|
||||
|
||||
@Schema(description = "品名代码")
|
||||
private String nameCd;
|
||||
|
||||
@Schema(description = "拼音码")
|
||||
private String pyCd;
|
||||
|
||||
@Schema(description = "报价费率")
|
||||
private BigDecimal chrgRte;
|
||||
|
||||
@Schema(description = "整车价号")
|
||||
private String exPrcCd;
|
||||
|
||||
@Schema(description = "零担价号")
|
||||
private String prtlPrcCd;
|
||||
|
||||
@Schema(description = "大类代码")
|
||||
private String bigTpCd;
|
||||
|
||||
@Schema(description = "大类名称", example = "李四")
|
||||
private String bigTpName;
|
||||
|
||||
@Schema(description = "中类代码")
|
||||
private String midTpCd;
|
||||
|
||||
@Schema(description = "中类名称", example = "芋艿")
|
||||
private String midTpName;
|
||||
|
||||
@Schema(description = "小类代码")
|
||||
private String smalTpCd;
|
||||
|
||||
@Schema(description = "小类名称", example = "王五")
|
||||
private String smalTpName;
|
||||
|
||||
@Schema(description = "子项")
|
||||
private List<RlwyMtrlSubSaveReqVO> items;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user