分公司使用类目

This commit is contained in:
clunt 2022-05-06 14:32:42 +08:00
parent a00e9f6b96
commit 5d3eacee0a
7 changed files with 94 additions and 64 deletions

View File

@ -1,17 +0,0 @@
package com.ghy.web.controller.goods;
import com.ghy.common.core.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @author clunt
* 商品规格
*/
@Controller
@RequestMapping("/goods/standard")
public class GoodsStandardController extends BaseController {
}

View File

@ -0,0 +1,34 @@
package com.ghy.goods.domain;
import com.ghy.common.annotation.Excel;
import com.ghy.common.core.domain.BaseEntity;
import lombok.Data;
/**
* @author clunt
* 分公司使用类目
*/
@Data
public class DeptGoodsCategory extends BaseEntity {
@Excel(name = "序列", cellType = Excel.ColumnType.NUMERIC)
private Long deptGoodsCategoryId;
@Excel(name = "分公司id", cellType = Excel.ColumnType.NUMERIC)
private Long deptId;
@Excel(name = "类别id", cellType = Excel.ColumnType.NUMERIC)
private Long goodsCategoryId;
@Excel(name = "排序", cellType = Excel.ColumnType.STRING)
private String categorySort;
@Excel(name = "一级分销扣点比例", cellType = Excel.ColumnType.STRING)
private String oneRate;
@Excel(name = "二级分销扣点比例", cellType = Excel.ColumnType.STRING)
private String twoRate;
@Excel(name = "三级分销扣点比例", cellType = Excel.ColumnType.STRING)
private String threeRate;
}

View File

@ -1,47 +0,0 @@
package com.ghy.goods.domain;
import com.ghy.common.annotation.Excel;
import com.ghy.common.core.domain.BaseEntity;
import lombok.Data;
import java.math.BigDecimal;
@Data
public class GoodsStandard extends BaseEntity {
@Excel(name = "序号", cellType = Excel.ColumnType.NUMERIC)
private Long goodsStandardId;
@Excel(name = "商品id", cellType = Excel.ColumnType.NUMERIC)
private Long goodsId;
@Excel(name = "规格名称", cellType = Excel.ColumnType.STRING)
private String goodsStandardName;
@Excel(name = "一级分销扣点比例", cellType = Excel.ColumnType.STRING)
private String oneRate;
@Excel(name = "二级分销扣点比例", cellType = Excel.ColumnType.STRING)
private String twoRate;
@Excel(name = "三级分销扣点比例", cellType = Excel.ColumnType.STRING)
private String threeRate;
@Excel(name = "规格状态", cellType = Excel.ColumnType.NUMERIC)
private Integer status;
@Excel(name = "价格")
private BigDecimal goodsPrice;
@Excel(name = "优惠价")
private BigDecimal discountsPrice;
@Excel(name = "团购价")
private BigDecimal groupPrice;
/** 岗位排序 */
@Excel(name = "商品排序", cellType = Excel.ColumnType.NUMERIC)
private String goodsSort;
}

View File

@ -0,0 +1,11 @@
package com.ghy.goods.mapper;
/**
* 分公司使用类目mapper
* @author clunt
*/
public interface DeptGoodsCategoryMapper {
}

View File

@ -0,0 +1,11 @@
package com.ghy.goods.service;
/**
* 分公司使用类目
* @author clunt
*/
public interface DeptGoodsCategoryService {
// 选择使用指定的公司类别
}

View File

@ -0,0 +1,17 @@
package com.ghy.goods.service.impl;
import com.ghy.goods.service.DeptGoodsCategoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
/**
* @author clunt
* 分公司使用类目
*/
@Slf4j
@Service
public class DeptGoodsCategoryServiceImpl implements DeptGoodsCategoryService {
}

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ghy.goods.mapper.DeptGoodsCategoryMapper">
<resultMap id="DeptGoodsCategoryResult" type="com.ghy.goods.domain.DeptGoodsCategory">
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectDeptGoodsCategory">
SELECT create_by, create_time, remark
FROM dept_goods_category
</sql>
</mapper>