feat:新增模具组字段

main
HuangHuiKang 5 days ago
parent ab03c51450
commit 71cffc2a1e

@ -43,6 +43,15 @@ public class MoldBrandSaveReqVO {
@Schema(description = "图片", example = "https://example.com/mold.png")
private String images;
@Schema(description = "图纸", example = "https://example.com/drawing.pdf")
private String drawings;
@Schema(description = "操作手册", example = "https://example.com/manual.pdf")
private String operationManual;
@Schema(description = "操作视频", example = "https://example.com/video.mp4")
private String operationVideo;
@Schema(description = "版本", example = "V1.0")
private String version;

@ -55,6 +55,22 @@ public class MoldBrandDO extends BaseDO {
*
*/
private String images;
/**
*
*/
private String drawings;
/**
*
*/
private String operationManual;
/**
*
*/
private String operationVideo;
/**
*
*/

@ -45,6 +45,18 @@ public class MoldBrandRespVO {
@ExcelProperty("图片")
private String images;
@Schema(description = "图纸", example = "https://example.com/drawing.pdf")
@ExcelProperty("图纸")
private String drawings;
@Schema(description = "操作手册", example = "https://example.com/manual.pdf")
@ExcelProperty("操作手册")
private String operationManual;
@Schema(description = "操作视频", example = "https://example.com/video.mp4")
@ExcelProperty("操作视频")
private String operationVideo;
@Schema(description = "版本", example = "V1.0")
@ExcelProperty("版本")
private String version;

@ -77,14 +77,14 @@ public interface ErpStockMapper extends BaseMapperX<ErpStockDO> {
default List<ErpStockDO> selectListByWarehouseIdsAndAreaIds(List<Long> warehouseIds, List<Long> areaIds) {
LambdaQueryWrapperX<ErpStockDO> query = new LambdaQueryWrapperX<ErpStockDO>()
.in(CollUtil.isNotEmpty(warehouseIds), ErpStockDO::getWarehouseId, warehouseIds)
.in(CollUtil.isNotEmpty(areaIds), ErpStockDO::getAreaId, areaIds);
.inIfPresent(ErpStockDO::getWarehouseId, warehouseIds)
.inIfPresent(ErpStockDO::getAreaId, areaIds);
return selectList(query);
}
default List<ErpStockDO> selectListByProductIds(List<Long> productIds) {
return selectList(new LambdaQueryWrapperX<ErpStockDO>()
.in(CollUtil.isNotEmpty(productIds), ErpStockDO::getProductId, productIds));
.inIfPresent(ErpStockDO::getProductId, productIds));
}
default int updateCountIncrement(Long id, BigDecimal count, boolean negativeEnable) {

@ -12,7 +12,8 @@
SELECT id, name, bar_code, category_id, sub_category_id, sub_category_name, unit_id,
purchase_unit_id, purchase_unit_name, purchase_unit_convert_quantity,
status, standard, remark, expiry_day, weight, purchase_price, sale_price,
min_price, safety_number, create_time, update_time, creator, updater, deleted
min_price, safety_number, images,
create_time, update_time, creator, updater, deleted
FROM erp_product
WHERE id IN
<foreach collection="ids" item="id" open="(" separator="," close=")">

Loading…
Cancel
Save