tag
This commit is contained in:
@@ -68,4 +68,6 @@ public interface CategoryInfoMapper
|
||||
|
||||
|
||||
int deleteCategoryInfoBycategoryId(String categoryId);
|
||||
|
||||
int deleteCategoryInfoBycategoryIds(String[] ids);
|
||||
}
|
||||
|
||||
@@ -58,5 +58,5 @@ public interface MusicRecommendMapper
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMusicRecommendByIds(String[] ids);
|
||||
public int deleteMusicRecommendByIds(Long[] ids);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.ruoyi.system.mapper;
|
||||
|
||||
import com.ruoyi.common.core.domain.entity.OrderInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-08-03
|
||||
*/
|
||||
public interface OrderInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public OrderInfo selectOrderInfoById(String id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param orderInfo 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<OrderInfo> selectOrderInfoList(OrderInfo orderInfo);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param orderInfo 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOrderInfo(OrderInfo orderInfo);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param orderInfo 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOrderInfo(OrderInfo orderInfo);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderInfoById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderInfoByIds(String[] ids);
|
||||
}
|
||||
@@ -50,7 +50,7 @@ public interface IMusicRecommendService
|
||||
* @param ids 需要删除的【请填写功能名称】主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMusicRecommendByIds(String[] ids);
|
||||
public int deleteMusicRecommendByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.ruoyi.system.service;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.domain.entity.OrderInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-08-03
|
||||
*/
|
||||
public interface IOrderInfoService
|
||||
{
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
public OrderInfo selectOrderInfoById(String id);
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param orderInfo 【请填写功能名称】
|
||||
* @return 【请填写功能名称】集合
|
||||
*/
|
||||
public List<OrderInfo> selectOrderInfoList(OrderInfo orderInfo);
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param orderInfo 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOrderInfo(OrderInfo orderInfo);
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param orderInfo 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOrderInfo(OrderInfo orderInfo);
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderInfoByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderInfoById(String id);
|
||||
|
||||
AjaxResult createOrder(OrderInfo orderInfo);
|
||||
}
|
||||
@@ -23,6 +23,7 @@ public class CategoryInfoServiceImpl implements ICategoryInfoService
|
||||
@Autowired
|
||||
private CategoryInfoMapper categoryInfoMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
@@ -83,6 +84,7 @@ public class CategoryInfoServiceImpl implements ICategoryInfoService
|
||||
@Override
|
||||
public int deleteCategoryInfoByIds(String[] ids)
|
||||
{
|
||||
categoryInfoMapper.deleteCategoryInfoBycategoryIds(ids);
|
||||
return categoryInfoMapper.deleteCategoryInfoByIds(ids);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ public class MusicRecommendServiceImpl implements IMusicRecommendService
|
||||
@Autowired
|
||||
private MusicRecommendMapper musicRecommendMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
@@ -75,8 +76,9 @@ public class MusicRecommendServiceImpl implements IMusicRecommendService
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMusicRecommendByIds(String[] ids)
|
||||
public int deleteMusicRecommendByIds(Long[] ids)
|
||||
{
|
||||
// 删除关联数据
|
||||
return musicRecommendMapper.deleteMusicRecommendByIds(ids);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.domain.entity.OrderInfo;
|
||||
import com.ruoyi.common.core.domain.model.LoginUser;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.system.mapper.OrderInfoMapper;
|
||||
import com.ruoyi.system.service.IOrderInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 【请填写功能名称】Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-08-03
|
||||
*/
|
||||
@Service
|
||||
public class OrderInfoServiceImpl implements IOrderInfoService
|
||||
{
|
||||
@Autowired
|
||||
private OrderInfoMapper orderInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public OrderInfo selectOrderInfoById(String id)
|
||||
{
|
||||
return orderInfoMapper.selectOrderInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询【请填写功能名称】列表
|
||||
*
|
||||
* @param orderInfo 【请填写功能名称】
|
||||
* @return 【请填写功能名称】
|
||||
*/
|
||||
@Override
|
||||
public List<OrderInfo> selectOrderInfoList(OrderInfo orderInfo)
|
||||
{
|
||||
return orderInfoMapper.selectOrderInfoList(orderInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增【请填写功能名称】
|
||||
*
|
||||
* @param orderInfo 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertOrderInfo(OrderInfo orderInfo)
|
||||
{
|
||||
orderInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return orderInfoMapper.insertOrderInfo(orderInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改【请填写功能名称】
|
||||
*
|
||||
* @param orderInfo 【请填写功能名称】
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateOrderInfo(OrderInfo orderInfo)
|
||||
{
|
||||
orderInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return orderInfoMapper.updateOrderInfo(orderInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除【请填写功能名称】
|
||||
*
|
||||
* @param ids 需要删除的【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteOrderInfoByIds(String[] ids)
|
||||
{
|
||||
return orderInfoMapper.deleteOrderInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除【请填写功能名称】信息
|
||||
*
|
||||
* @param id 【请填写功能名称】主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteOrderInfoById(String id)
|
||||
{
|
||||
return orderInfoMapper.deleteOrderInfoById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult createOrder(OrderInfo orderInfo) {
|
||||
LoginUser userInfo = SecurityUtils.getLoginUser();
|
||||
|
||||
if (userInfo != null){
|
||||
//orderInfo.setPayStatus();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -93,6 +93,7 @@ public class RecommendInfoServiceImpl implements IRecommendInfoService
|
||||
@Override
|
||||
public int deleteRecommendInfoByIds(Long[] ids)
|
||||
{
|
||||
musicRecommendMapper.deleteMusicRecommendByIds(ids);
|
||||
return recommendInfoMapper.deleteRecommendInfoByIds(ids);
|
||||
}
|
||||
|
||||
|
||||
@@ -102,4 +102,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<delete id="deleteCategoryInfoBycategoryId">
|
||||
DELETE FROM music_category where category_id =#{categoryId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCategoryInfoBycategoryIds">
|
||||
delete from music_category where category_id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
||||
@@ -0,0 +1,154 @@
|
||||
<?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.OrderInfoMapper">
|
||||
|
||||
<resultMap type="OrderInfo" id="OrderInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderId" column="order_id" />
|
||||
<result property="orderName" column="order_name" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="amount" column="amount" />
|
||||
<result property="payType" column="pay_type" />
|
||||
<result property="payTime" column="pay_time" />
|
||||
<result property="payStatus" column="pay_status" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="endTime" column="end_time" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="idDel" column="id_del" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="callTime" column="call_time" />
|
||||
<result property="packageType" column="package_type" />
|
||||
<result property="callbackContent" column="callback_content" />
|
||||
<result property="tradeNo" column="trade_no" />
|
||||
<result property="refundAmount" column="refund_amount" />
|
||||
<result property="refundTime" column="refund_time" />
|
||||
<result property="clientIp" column="client_ip" />
|
||||
<result property="deviceType" column="device_type" />
|
||||
<result property="version" column="version" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectOrderInfoVo">
|
||||
select id, order_id, order_name, user_id, amount, pay_type, pay_time, pay_status, start_time, end_time, create_time, id_del, update_time, call_time, package_type, callback_content, trade_no, refund_amount, refund_time, client_ip, device_type, version from order_info
|
||||
</sql>
|
||||
|
||||
<select id="selectOrderInfoList" parameterType="OrderInfo" resultMap="OrderInfoResult">
|
||||
<include refid="selectOrderInfoVo"/>
|
||||
<where>
|
||||
<if test="orderId != null "> and order_id = #{orderId}</if>
|
||||
<if test="orderName != null and orderName != ''"> and order_name like concat('%', #{orderName}, '%')</if>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="amount != null "> and amount = #{amount}</if>
|
||||
<if test="payType != null and payType != ''"> and pay_type = #{payType}</if>
|
||||
<if test="payTime != null "> and pay_time = #{payTime}</if>
|
||||
<if test="payStatus != null "> and pay_status = #{payStatus}</if>
|
||||
<if test="startTime != null "> and start_time = #{startTime}</if>
|
||||
<if test="endTime != null "> and end_time = #{endTime}</if>
|
||||
<if test="idDel != null "> and id_del = #{idDel}</if>
|
||||
<if test="callTime != null "> and call_time = #{callTime}</if>
|
||||
<if test="packageType != null and packageType != ''"> and package_type = #{packageType}</if>
|
||||
<if test="callbackContent != null and callbackContent != ''"> and callback_content = #{callbackContent}</if>
|
||||
<if test="tradeNo != null and tradeNo != ''"> and trade_no = #{tradeNo}</if>
|
||||
<if test="refundAmount != null "> and refund_amount = #{refundAmount}</if>
|
||||
<if test="refundTime != null "> and refund_time = #{refundTime}</if>
|
||||
<if test="clientIp != null and clientIp != ''"> and client_ip = #{clientIp}</if>
|
||||
<if test="deviceType != null and deviceType != ''"> and device_type = #{deviceType}</if>
|
||||
<if test="version != null "> and version = #{version}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectOrderInfoById" parameterType="String" resultMap="OrderInfoResult">
|
||||
<include refid="selectOrderInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertOrderInfo" parameterType="OrderInfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into order_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="orderId != null">order_id,</if>
|
||||
<if test="orderName != null">order_name,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="amount != null">amount,</if>
|
||||
<if test="payType != null">pay_type,</if>
|
||||
<if test="payTime != null">pay_time,</if>
|
||||
<if test="payStatus != null">pay_status,</if>
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="endTime != null">end_time,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="idDel != null">id_del,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="callTime != null">call_time,</if>
|
||||
<if test="packageType != null">package_type,</if>
|
||||
<if test="callbackContent != null">callback_content,</if>
|
||||
<if test="tradeNo != null">trade_no,</if>
|
||||
<if test="refundAmount != null">refund_amount,</if>
|
||||
<if test="refundTime != null">refund_time,</if>
|
||||
<if test="clientIp != null">client_ip,</if>
|
||||
<if test="deviceType != null">device_type,</if>
|
||||
<if test="version != null">version,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="orderId != null">#{orderId},</if>
|
||||
<if test="orderName != null">#{orderName},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="amount != null">#{amount},</if>
|
||||
<if test="payType != null">#{payType},</if>
|
||||
<if test="payTime != null">#{payTime},</if>
|
||||
<if test="payStatus != null">#{payStatus},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="endTime != null">#{endTime},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="idDel != null">#{idDel},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="callTime != null">#{callTime},</if>
|
||||
<if test="packageType != null">#{packageType},</if>
|
||||
<if test="callbackContent != null">#{callbackContent},</if>
|
||||
<if test="tradeNo != null">#{tradeNo},</if>
|
||||
<if test="refundAmount != null">#{refundAmount},</if>
|
||||
<if test="refundTime != null">#{refundTime},</if>
|
||||
<if test="clientIp != null">#{clientIp},</if>
|
||||
<if test="deviceType != null">#{deviceType},</if>
|
||||
<if test="version != null">#{version},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateOrderInfo" parameterType="OrderInfo">
|
||||
update order_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="orderId != null">order_id = #{orderId},</if>
|
||||
<if test="orderName != null">order_name = #{orderName},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="amount != null">amount = #{amount},</if>
|
||||
<if test="payType != null">pay_type = #{payType},</if>
|
||||
<if test="payTime != null">pay_time = #{payTime},</if>
|
||||
<if test="payStatus != null">pay_status = #{payStatus},</if>
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="endTime != null">end_time = #{endTime},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="idDel != null">id_del = #{idDel},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="callTime != null">call_time = #{callTime},</if>
|
||||
<if test="packageType != null">package_type = #{packageType},</if>
|
||||
<if test="callbackContent != null">callback_content = #{callbackContent},</if>
|
||||
<if test="tradeNo != null">trade_no = #{tradeNo},</if>
|
||||
<if test="refundAmount != null">refund_amount = #{refundAmount},</if>
|
||||
<if test="refundTime != null">refund_time = #{refundTime},</if>
|
||||
<if test="clientIp != null">client_ip = #{clientIp},</if>
|
||||
<if test="deviceType != null">device_type = #{deviceType},</if>
|
||||
<if test="version != null">version = #{version},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteOrderInfoById" parameterType="String">
|
||||
delete from order_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteOrderInfoByIds" parameterType="String">
|
||||
delete from order_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user