修改套餐功能
This commit is contained in:
-4
@@ -69,10 +69,6 @@ public class BmsCustomerPriceSetServiceImpl implements IBmsCustomerPriceSetServi
|
||||
throw new ServiceException("仅生效中的套餐允许绑定,当前套餐状态不可用");
|
||||
}
|
||||
if (bind.getPrBegindate() == null)
|
||||
{
|
||||
bind.setPrBegindate(set.getEffectiveDate());
|
||||
}
|
||||
if (bind.getPrBegindate() == null)
|
||||
{
|
||||
throw new ServiceException("绑定生效日期不能为空");
|
||||
}
|
||||
|
||||
+3
-8
@@ -22,8 +22,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="priceSetName" column="price_set_name" />
|
||||
<result property="setType" column="set_type" />
|
||||
<result property="priceSetStatus" column="price_set_status" />
|
||||
<result property="setEffectiveDate" column="set_effective_date" />
|
||||
<result property="setExpireDate" column="set_expire_date" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="com.ruoyi.customer.customerinfo.domain.BmsPriceSetOption" id="BmsPriceSetOptionResult">
|
||||
@@ -32,8 +30,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="priceSetName" column="price_set_name" />
|
||||
<result property="setType" column="set_type" />
|
||||
<result property="status" column="status" />
|
||||
<result property="effectiveDate" column="effective_date" />
|
||||
<result property="expireDate" column="expire_date" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="bindVo">
|
||||
@@ -41,8 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
c.bind_priority, c.pr_begindate, c.pr_enddate, c.price_set_note,
|
||||
c.created_by, c.create_time, c.updated_by, c.update_time,
|
||||
s.price_set_code, s.price_set_name, s.set_type,
|
||||
s.status as price_set_status,
|
||||
s.effective_date as set_effective_date, s.expire_date as set_expire_date
|
||||
s.status as price_set_status
|
||||
from prc_customer_price_set c
|
||||
left join prc_price_set s on s.price_set_id = c.price_set_id
|
||||
</sql>
|
||||
@@ -104,7 +99,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectPriceSetOptionList"
|
||||
parameterType="com.ruoyi.customer.customerinfo.domain.BmsPriceSetOption"
|
||||
resultMap="BmsPriceSetOptionResult">
|
||||
select price_set_id, price_set_code, price_set_name, set_type, status, effective_date, expire_date
|
||||
select price_set_id, price_set_code, price_set_name, set_type, status
|
||||
from prc_price_set
|
||||
<where>
|
||||
status = 'E'
|
||||
@@ -120,7 +115,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</select>
|
||||
|
||||
<select id="selectPriceSetOptionById" resultMap="BmsPriceSetOptionResult">
|
||||
select price_set_id, price_set_code, price_set_name, set_type, status, effective_date, expire_date
|
||||
select price_set_id, price_set_code, price_set_name, set_type, status
|
||||
from prc_price_set
|
||||
where price_set_id = #{priceSetId}
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user