pl
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import com.ruoyi.common.core.domain.entity.PlaStatus;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-30
|
||||
*/
|
||||
public interface PlaStatusMapper
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public PlaStatus selectPlaStatusById(Long id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param plaStatus 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<PlaStatus> selectPlaStatusList(PlaStatus plaStatus);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param plaStatus 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPlaStatus(PlaStatus plaStatus);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param plaStatus 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePlaStatus(PlaStatus plaStatus);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePlaStatusById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePlaStatusByIds(Long[] ids);
|
||||
}
|
||||
@@ -156,7 +156,6 @@ public class OrderInfoServiceImpl implements IOrderInfoService
|
||||
orderInfo.setOrderName(request.getOrderName());
|
||||
orderInfo.setUserId(loginUser.getUserId());
|
||||
Product product = productMapper.selectProductByPageType(request.getPackageType());
|
||||
|
||||
orderInfo.setAmount(product.getCurrentPrice());
|
||||
orderInfo.setPayType(request.getPayType());
|
||||
orderInfo.setPackageType(request.getPackageType());
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
<?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.ruoyi.system.mapper.PlaStatusMapper">
|
||||
|
||||
<resultMap type="PlaStatus" id="PlaStatusResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="shareStatus" column="share_status" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPlaStatusVo">
|
||||
select id, share_status from pla_status
|
||||
</sql>
|
||||
|
||||
<select id="selectPlaStatusList" parameterType="PlaStatus" resultMap="PlaStatusResult">
|
||||
<include refid="selectPlaStatusVo"/>
|
||||
<where>
|
||||
<if test="shareStatus != null "> and share_status = #{shareStatus}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPlaStatusById" parameterType="Long" resultMap="PlaStatusResult">
|
||||
<include refid="selectPlaStatusVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPlaStatus" parameterType="PlaStatus" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into pla_status
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="shareStatus != null">share_status,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="shareStatus != null">#{shareStatus},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePlaStatus" parameterType="PlaStatus">
|
||||
update pla_status
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="shareStatus != null">share_status = #{shareStatus},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePlaStatusById" parameterType="Long">
|
||||
delete from pla_status where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePlaStatusByIds" parameterType="String">
|
||||
delete from pla_status where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user