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

Commit 3b6182a5 authored by GaoHu's avatar GaoHu

打款功能修改

parent 88d1c522
...@@ -20,6 +20,7 @@ public class SmileRedisConst { ...@@ -20,6 +20,7 @@ public class SmileRedisConst {
public static final String SELL_DATA_COMMISSION = PREFIX.concat("sellDataCommission:"); //销售数据 第一步 public static final String SELL_DATA_COMMISSION = PREFIX.concat("sellDataCommission:"); //销售数据 第一步
public static final String SELL_SHOW_PAYMENT = PREFIX.concat("show:payment:"); //打款信息 SELL_SHOW_PAYMENT+演出id+uid public static final String SELL_SHOW_PAYMENT = PREFIX.concat("show:payment:"); //打款信息 SELL_SHOW_PAYMENT+演出id+uid
public static final String SELL_SHOW_SAVE = PREFIX.concat("show:save:"); //演出打款vo数据 SELL_SHOW_SAVE+演出id
public static final String SELL_SHOW_PAYMENT_ENDJOB = PREFIX.concat("show:payment:endJob"); //定时任务结算信息 SELL_SHOW_PAYMENT_ENDJOB+演出id+uid public static final String SELL_SHOW_PAYMENT_ENDJOB = PREFIX.concat("show:payment:endJob"); //定时任务结算信息 SELL_SHOW_PAYMENT_ENDJOB+演出id+uid
......
package com.liquidnet.client.admin.zhengzai.smile.utils; package com.liquidnet.client.admin.zhengzai.smile.utils;
import com.liquidnet.client.admin.zhengzai.smile.dto.ShowVo;
import com.liquidnet.client.admin.zhengzai.smile.dto.UserData; import com.liquidnet.client.admin.zhengzai.smile.dto.UserData;
import com.liquidnet.service.goblin.dto.vo.SmileProjectDetailsVo; import com.liquidnet.service.goblin.dto.vo.SmileProjectDetailsVo;
import com.liquidnet.common.cache.redis.util.AbstractRedisUtil; import com.liquidnet.common.cache.redis.util.AbstractRedisUtil;
...@@ -317,4 +318,27 @@ public class SmileRedisUtils { ...@@ -317,4 +318,27 @@ public class SmileRedisUtils {
String rdk = SmileRedisConst.VOLUNTEERS_DETAILS.concat(projectId).concat(":uid:").concat(uid); String rdk = SmileRedisConst.VOLUNTEERS_DETAILS.concat(projectId).concat(":uid:").concat(uid);
getRedis().set(rdk, teamIds); getRedis().set(rdk, teamIds);
} }
/**
* 保存演出列表vo
* @param vo
*/
public void setShowVoByPerId(ShowVo vo) {
String key = SmileRedisConst.SELL_SHOW_SAVE.concat(vo.getPerformancesId());
redisDataSourceUtil.getRedisSweetUtil().set(key,vo);
}
/**
* 获取演出列表vo
* @param vo
*/
public ShowVo getShowVoByPerId(String perId) {
String key = SmileRedisConst.SELL_SHOW_SAVE.concat(perId);
Object o = redisDataSourceUtil.getRedisSweetUtil().get(key);
if (o==null){
return null;
}else {
return (ShowVo) o;
}
}
} }
...@@ -49,6 +49,11 @@ public class SmilePrice implements Serializable { ...@@ -49,6 +49,11 @@ public class SmilePrice implements Serializable {
*/ */
private String record; private String record;
/**
* 打款标识0:未打款,1:已打款
*/
private Integer status;
/** /**
* 0:未删除,1:已删除 * 0:未删除,1:已删除
*/ */
...@@ -64,6 +69,14 @@ public class SmilePrice implements Serializable { ...@@ -64,6 +69,14 @@ public class SmilePrice implements Serializable {
*/ */
private LocalDateTime updatedDate; private LocalDateTime updatedDate;
private static final SmilePrice obj = new SmilePrice();
public static SmilePrice getNew() {
try {
return (SmilePrice) obj.clone();
} catch (CloneNotSupportedException e) {
return new SmilePrice();
}
}
} }
...@@ -43,4 +43,6 @@ public interface SmileUserMapper extends BaseMapper<SmileUser> { ...@@ -43,4 +43,6 @@ public interface SmileUserMapper extends BaseMapper<SmileUser> {
List<SmileUser> getAllUidByPerId(@Param("performancesId") String performancesId); List<SmileUser> getAllUidByPerId(@Param("performancesId") String performancesId);
List<SmileUser> selectUidByPerId(@Param("performancesId") String performancesId); List<SmileUser> selectUidByPerId(@Param("performancesId") String performancesId);
List<SmileUser> selectUidByPerIdNotType(@Param("performancesId") String performancesId);
} }
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
WHERE WHERE
kotr.performance_id = #{performancesId} kotr.performance_id = #{performancesId}
AND kotr.agent_id != 0 AND kotr.agent_id != 0
AND COALESCE ( kotr.agent_id, kotr.agent_id_master ) NOT IN ( SELECT sp.uid FROM smile_price AS sp WHERE sp.performanceS_id = #{performancesId} AND sp.record != '') AND COALESCE ( kotr.agent_id, kotr.agent_id_master ) NOT IN ( SELECT sp.uid FROM smile_price AS sp WHERE sp.performanceS_id = #{performancesId} AND sp.uid IS NOT NULL AND sp.record != '')
GROUP BY GROUP BY
uid uid
) )
......
...@@ -169,22 +169,26 @@ ...@@ -169,22 +169,26 @@
</select> </select>
<select id="selectUidByPerId" resultType="com.liquidnet.service.smile.entity.SmileUser"> <select id="selectUidByPerId" resultType="com.liquidnet.service.smile.entity.SmileUser">
SELECT su.uid, SELECT
su.name, su.uid,
su.type, su.name,
su.city su.type,
FROM smile_user AS su su.city
INNER JOIN( FROM
SELECT COALESCE smile_user AS su
(kotr.agent_id, kotr.agent_id_master) uid INNER JOIN ( SELECT kotr.agent_id, kotr.agent_id_master FROM kylin_order_ticket_relations AS kotr WHERE kotr.performance_id = #{performancesId} AND kotr.agent_id != 0 ) kk ON su.uid = kk.agent_id
FROM kylin_order_ticket_relations AS kotr OR su.uid = kk.agent_id_master
WHERE kotr.performance_id = #{performancesId}
AND kotr.agent_id != 0
AND COALESCE(kotr.agent_id, kotr.agent_id_master) NOT IN (SELECT sp.uid
FROM smile_price AS sp
WHERE sp.performanceS_id = #{performancesId}
AND sp.record != '')
GROUP BY uid) AS uu ON uu.uid = su.uid
WHERE su.type = 1 WHERE su.type = 1
</select> </select>
<select id="selectUidByPerIdNotType" resultType="com.liquidnet.service.smile.entity.SmileUser">
SELECT
su.uid
FROM
smile_user AS su
INNER JOIN ( SELECT kotr.agent_id, kotr.agent_id_master FROM kylin_order_ticket_relations AS kotr WHERE kotr.performance_id = #{performancesId} AND kotr.agent_id != 0 ) kk ON su.uid = kk.agent_id
OR su.uid = kk.agent_id_master
</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