jsk 商超
This commit is contained in:
parent
d663ed2521
commit
c7bec95298
|
|
@ -10,7 +10,7 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 超市商城商品对象 supermarket_product
|
* 超市商城商品对象 supermarket_product
|
||||||
*
|
*
|
||||||
* @author xsheng
|
* @author xsheng
|
||||||
* @date 2025-06-03
|
* @date 2025-06-03
|
||||||
*/
|
*/
|
||||||
|
|
@ -20,7 +20,7 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
||||||
@ToString
|
@ToString
|
||||||
public class SupermarketProduct extends BaseEntity {
|
public class SupermarketProduct extends BaseEntity {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** 商城商品明细id */
|
/** 商城商品明细id */
|
||||||
private Long productId;
|
private Long productId;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,14 @@ import com.bonus.canteen.core.supermarket.domain.SupermarketProduct;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 超市商城商品Mapper接口
|
* 超市商城商品Mapper接口
|
||||||
*
|
*
|
||||||
* @author xsheng
|
* @author xsheng
|
||||||
* @date 2025-06-03
|
* @date 2025-06-03
|
||||||
*/
|
*/
|
||||||
public interface SupermarketProductMapper {
|
public interface SupermarketProductMapper {
|
||||||
/**
|
/**
|
||||||
* 查询超市商城商品
|
* 查询超市商城商品
|
||||||
*
|
*
|
||||||
* @param productId 超市商城商品主键
|
* @param productId 超市商城商品主键
|
||||||
* @return 超市商城商品
|
* @return 超市商城商品
|
||||||
*/
|
*/
|
||||||
|
|
@ -22,7 +22,7 @@ public interface SupermarketProductMapper {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询超市商城商品列表
|
* 查询超市商城商品列表
|
||||||
*
|
*
|
||||||
* @param supermarketProduct 超市商城商品
|
* @param supermarketProduct 超市商城商品
|
||||||
* @return 超市商城商品集合
|
* @return 超市商城商品集合
|
||||||
*/
|
*/
|
||||||
|
|
@ -30,7 +30,7 @@ public interface SupermarketProductMapper {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增超市商城商品
|
* 新增超市商城商品
|
||||||
*
|
*
|
||||||
* @param supermarketProduct 超市商城商品
|
* @param supermarketProduct 超市商城商品
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|
@ -38,7 +38,7 @@ public interface SupermarketProductMapper {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改超市商城商品
|
* 修改超市商城商品
|
||||||
*
|
*
|
||||||
* @param supermarketProduct 超市商城商品
|
* @param supermarketProduct 超市商城商品
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|
@ -46,7 +46,7 @@ public interface SupermarketProductMapper {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除超市商城商品
|
* 删除超市商城商品
|
||||||
*
|
*
|
||||||
* @param productId 超市商城商品主键
|
* @param productId 超市商城商品主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|
@ -54,7 +54,7 @@ public interface SupermarketProductMapper {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除超市商城商品
|
* 批量删除超市商城商品
|
||||||
*
|
*
|
||||||
* @param productIds 需要删除的数据主键集合
|
* @param productIds 需要删除的数据主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,14 @@ import com.bonus.canteen.core.supermarket.domain.SupermarketProduct;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 超市商城商品Service接口
|
* 超市商城商品Service接口
|
||||||
*
|
*
|
||||||
* @author xsheng
|
* @author xsheng
|
||||||
* @date 2025-06-03
|
* @date 2025-06-03
|
||||||
*/
|
*/
|
||||||
public interface ISupermarketProductService {
|
public interface ISupermarketProductService {
|
||||||
/**
|
/**
|
||||||
* 查询超市商城商品
|
* 查询超市商城商品
|
||||||
*
|
*
|
||||||
* @param productId 超市商城商品主键
|
* @param productId 超市商城商品主键
|
||||||
* @return 超市商城商品
|
* @return 超市商城商品
|
||||||
*/
|
*/
|
||||||
|
|
@ -20,7 +20,7 @@ public interface ISupermarketProductService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询超市商城商品列表
|
* 查询超市商城商品列表
|
||||||
*
|
*
|
||||||
* @param supermarketProduct 超市商城商品
|
* @param supermarketProduct 超市商城商品
|
||||||
* @return 超市商城商品集合
|
* @return 超市商城商品集合
|
||||||
*/
|
*/
|
||||||
|
|
@ -28,7 +28,7 @@ public interface ISupermarketProductService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增超市商城商品
|
* 新增超市商城商品
|
||||||
*
|
*
|
||||||
* @param supermarketProduct 超市商城商品
|
* @param supermarketProduct 超市商城商品
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|
@ -36,7 +36,7 @@ public interface ISupermarketProductService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改超市商城商品
|
* 修改超市商城商品
|
||||||
*
|
*
|
||||||
* @param supermarketProduct 超市商城商品
|
* @param supermarketProduct 超市商城商品
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|
@ -44,7 +44,7 @@ public interface ISupermarketProductService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除超市商城商品
|
* 批量删除超市商城商品
|
||||||
*
|
*
|
||||||
* @param productIds 需要删除的超市商城商品主键集合
|
* @param productIds 需要删除的超市商城商品主键集合
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|
@ -52,7 +52,7 @@ public interface ISupermarketProductService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除超市商城商品信息
|
* 删除超市商城商品信息
|
||||||
*
|
*
|
||||||
* @param productId 超市商城商品主键
|
* @param productId 超市商城商品主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ import com.bonus.canteen.core.supermarket.service.ISupermarketProductService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 超市商城商品Service业务层处理
|
* 超市商城商品Service业务层处理
|
||||||
*
|
*
|
||||||
* @author xsheng
|
* @author xsheng
|
||||||
* @date 2025-06-03
|
* @date 2025-06-03
|
||||||
*/
|
*/
|
||||||
|
|
@ -23,7 +23,7 @@ public class SupermarketProductServiceImpl implements ISupermarketProductService
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询超市商城商品
|
* 查询超市商城商品
|
||||||
*
|
*
|
||||||
* @param productId 超市商城商品主键
|
* @param productId 超市商城商品主键
|
||||||
* @return 超市商城商品
|
* @return 超市商城商品
|
||||||
*/
|
*/
|
||||||
|
|
@ -34,7 +34,7 @@ public class SupermarketProductServiceImpl implements ISupermarketProductService
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询超市商城商品列表
|
* 查询超市商城商品列表
|
||||||
*
|
*
|
||||||
* @param supermarketProduct 超市商城商品
|
* @param supermarketProduct 超市商城商品
|
||||||
* @return 超市商城商品
|
* @return 超市商城商品
|
||||||
*/
|
*/
|
||||||
|
|
@ -45,7 +45,7 @@ public class SupermarketProductServiceImpl implements ISupermarketProductService
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增超市商城商品
|
* 新增超市商城商品
|
||||||
*
|
*
|
||||||
* @param supermarketProduct 超市商城商品
|
* @param supermarketProduct 超市商城商品
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|
@ -62,7 +62,7 @@ public class SupermarketProductServiceImpl implements ISupermarketProductService
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改超市商城商品
|
* 修改超市商城商品
|
||||||
*
|
*
|
||||||
* @param supermarketProduct 超市商城商品
|
* @param supermarketProduct 超市商城商品
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|
@ -79,7 +79,7 @@ public class SupermarketProductServiceImpl implements ISupermarketProductService
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除超市商城商品
|
* 批量删除超市商城商品
|
||||||
*
|
*
|
||||||
* @param productIds 需要删除的超市商城商品主键
|
* @param productIds 需要删除的超市商城商品主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|
@ -90,7 +90,7 @@ public class SupermarketProductServiceImpl implements ISupermarketProductService
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除超市商城商品信息
|
* 删除超市商城商品信息
|
||||||
*
|
*
|
||||||
* @param productId 超市商城商品主键
|
* @param productId 超市商城商品主键
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
<select id="selectSupermarketProductList" parameterType="com.bonus.canteen.core.supermarket.domain.SupermarketProduct" resultMap="SupermarketProductResult">
|
<select id="selectSupermarketProductList" parameterType="com.bonus.canteen.core.supermarket.domain.SupermarketProduct" resultMap="SupermarketProductResult">
|
||||||
<include refid="selectSupermarketProductVo"/>
|
<include refid="selectSupermarketProductVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="supermarketId != null "> and sp.supermarket_id = #{supermarketId}</if>
|
<if test="supermarketId != null "> and sp.supermarket_id = #{supermarketId}</if>
|
||||||
<if test="materialId != null "> and sp.material_id = #{materialId}</if>
|
<if test="materialId != null "> and sp.material_id = #{materialId}</if>
|
||||||
<if test="putawayState != null "> and sp.putaway_state = #{putawayState}</if>
|
<if test="putawayState != null "> and sp.putaway_state = #{putawayState}</if>
|
||||||
|
|
@ -47,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="inventoryNum != null "> and sp.inventory_num = #{inventoryNum}</if>
|
<if test="inventoryNum != null "> and sp.inventory_num = #{inventoryNum}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectSupermarketProductByProductId" parameterType="Long" resultMap="SupermarketProductResult">
|
<select id="selectSupermarketProductByProductId" parameterType="Long" resultMap="SupermarketProductResult">
|
||||||
<include refid="selectSupermarketProductVo"/>
|
<include refid="selectSupermarketProductVo"/>
|
||||||
where sp.product_id = #{productId}
|
where sp.product_id = #{productId}
|
||||||
|
|
@ -60,7 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
#{materialId}
|
#{materialId}
|
||||||
</foreach>
|
</foreach>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertSupermarketProduct" parameterType="com.bonus.canteen.core.supermarket.domain.SupermarketProduct" useGeneratedKeys="true" keyProperty="productId">
|
<insert id="insertSupermarketProduct" parameterType="com.bonus.canteen.core.supermarket.domain.SupermarketProduct" useGeneratedKeys="true" keyProperty="productId">
|
||||||
insert into supermarket_product
|
insert into supermarket_product
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
|
@ -123,9 +123,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<delete id="deleteSupermarketProductByProductIds" parameterType="String">
|
<delete id="deleteSupermarketProductByProductIds" parameterType="String">
|
||||||
delete from supermarket_product where product_id in
|
delete from supermarket_product where product_id in
|
||||||
<foreach item="productId" collection="array" open="(" separator="," close=")">
|
<foreach item="productId" collection="array" open="(" separator="," close=")">
|
||||||
#{productId}
|
#{productId}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue