记得上下班打卡 | git大法好,push需谨慎

Commit 988161b4 authored by jiangxiulong's avatar jiangxiulong

批量演出 select one

parent 2d73e5b5
...@@ -89,9 +89,7 @@ public class KylinRefundPerformancesAdminServiceImpl { ...@@ -89,9 +89,7 @@ public class KylinRefundPerformancesAdminServiceImpl {
return ResponseDto.failure("演出暂无需要退款的订单"); return ResponseDto.failure("演出暂无需要退款的订单");
} }
KylinOrderRefundBatches refundBatchesInfo = kylinOrderRefundBatchesMapper.selectOne( KylinOrderRefundBatches refundBatchesInfo = kylinOrderRefundBatchesMapper.selectLastOne(targetId);
new QueryWrapper<KylinOrderRefundBatches>().eq("target_id", targetId).orderByDesc("refund_batch_id")
);
if (refundBatchesInfo == null || if (refundBatchesInfo == null ||
refundBatchesInfo.getStatus() == KylinTableStatusConst.STATUS_CANCEL || refundBatchesInfo.getStatus() == KylinTableStatusConst.STATUS_CANCEL ||
refundBatchesInfo.getStatus() == KylinTableStatusConst.STATUS_FINANCE_ADOPT refundBatchesInfo.getStatus() == KylinTableStatusConst.STATUS_FINANCE_ADOPT
......
...@@ -18,4 +18,6 @@ import java.util.Map; ...@@ -18,4 +18,6 @@ import java.util.Map;
public interface KylinOrderRefundBatchesMapper extends BaseMapper<KylinOrderRefundBatches> { public interface KylinOrderRefundBatchesMapper extends BaseMapper<KylinOrderRefundBatches> {
List<OrderRefundBatchDao> misRefundBatchList(Map<String,Object> map); List<OrderRefundBatchDao> misRefundBatchList(Map<String,Object> map);
KylinOrderRefundBatches selectLastOne(String targetId);
} }
...@@ -14,4 +14,13 @@ ...@@ -14,4 +14,13 @@
</if> </if>
</where> </where>
</select> </select>
<select id="selectLastOne" resultType="com.liquidnet.service.kylin.entity.KylinOrderRefundBatches">
SELECT *
FROM kylin_order_refund_batches
<where>
target_id = #{targetId}
</where>
ORDER BY mid DESC
LIMIT 1
</select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment