//审批拒绝阶段 数据处理
This commit is contained in:
@@ -108,4 +108,10 @@ public class LinePayDAO {
|
||||
}
|
||||
return linePayMapper.updateXgjClaimStatus(shopIds,xgjClaimStatus,payBusinessType);
|
||||
}
|
||||
public Integer deleteByShopId(List<Long> shopIds){
|
||||
if (CollectionUtils.isEmpty(shopIds)){
|
||||
return null;
|
||||
}
|
||||
return linePayMapper.deleteByShopId(shopIds);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,4 +68,6 @@ public interface LinePayMapper {
|
||||
Integer dataUpdateLinePay(@Param("list") List<LinePayDO> linePayDOList);
|
||||
|
||||
Integer updateXgjClaimStatus(@Param("list") List<Long> shopIds,@Param("xgjClaimStatus") Integer xgjClaimStatus,@Param("payBusinessType") Integer payBusinessType);
|
||||
|
||||
Integer deleteByShopId(@Param("list")List<Long> shopIds);
|
||||
}
|
||||
@@ -48,6 +48,14 @@
|
||||
from xfsg_line_pay
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<update id="deleteByShopId">
|
||||
update xfsg_line_pay
|
||||
set deleted = 1
|
||||
where shop_id in
|
||||
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</update>
|
||||
<insert id="insertSelective" parameterType="com.cool.store.entity.LinePayDO">
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
|
||||
SELECT LAST_INSERT_ID()
|
||||
|
||||
@@ -1070,6 +1070,12 @@ public class DataHandlerServerImpl implements DataHandlerServer {
|
||||
List<ShopStageInfoDO> waitPayStageList = shopStageInfoDAO.getShopStageInfoByShopSubStageStatus(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_71.getShopSubStageStatus());
|
||||
List<Long> waitPayShopIds = waitPayStageList.stream().map(ShopStageInfoDO::getShopId).collect(Collectors.toList());
|
||||
franchiseFeeDAO.batchUpdateXgjCollectionStatus(waitPayShopIds, XGJCollectionStatusEnum.WAIT_PAY.getCode());
|
||||
//审批拒绝阶段
|
||||
List<ShopStageInfoDO> refuseStageList = shopStageInfoDAO.getShopStageInfoByShopSubStageStatus(ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_74.getShopSubStageStatus());
|
||||
List<Long> refuseShopIds = refuseStageList.stream().map(ShopStageInfoDO::getShopId).collect(Collectors.toList());
|
||||
franchiseFeeDAO.batchUpdateXgjCollectionStatus(refuseShopIds, XGJCollectionStatusEnum.WAIT_PAY.getCode());
|
||||
linePayDAO.deleteByShopId(refuseShopIds);
|
||||
shopStageInfoDAO.dataUpdateStatus(refuseShopIds,ShopSubStageStatusEnum.SHOP_SUB_STAGE_STATUS_71);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user