监控电量订单结束时间

This commit is contained in:
磷叶 2024-12-09 10:31:08 +08:00
parent 0a144abd3e
commit c1e1df2807
3 changed files with 12 additions and 0 deletions

View File

@ -141,4 +141,7 @@ public class TransactionBillQuery extends TransactionBill {
@ApiModelProperty("员工权限")
private String staffPermission;
@ApiModelProperty("套餐结束时间是否为空")
private Boolean isNullSuitEndTime;
}

View File

@ -209,6 +209,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="query.suitVoidResult != null and query.suitVoidResult != ''"> and stb.suit_void_result = #{query.suitVoidResult}</if>
<if test="query.openMsg != null and query.openMsg != ''"> and stb.open_msg like concat('%', #{query.openMsg}, '%')</if>
<if test="query.mchShowMobileStatus != null and query.mchShowMobileStatus != ''"> and stb.mch_show_mobile_status = #{query.mchShowMobileStatus}</if>
<if test="query.isNullSuitEndTime != null">
and stb.suit_end_time is
<if test="!query.isNullSuitEndTime">
not
</if>
null
</if>
<if test="query.isUsing != null">
<if test="query.isUsing">
and <include refid="isUsing"/>
@ -837,6 +844,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<foreach collection="billIds" separator="," item="item" close=")" open="(">
#{item}
</foreach>
and suit_end_time is null
</update>
</mapper>

View File

@ -100,6 +100,7 @@ public class BillMonitorTask {
query.setCreateTimeStart(DateUtils.toLocalDateTime(startTime));
query.setIsFinished(true);
query.setSuitFeeType(SuitFeeType.COUNT.getType());
query.setIsNullSuitEndTime(true);
List<TransactionBillVO> list = transactionBillService.selectSmTransactionBillList(query);
if (CollectionUtils.isEmptyElement(list)) {