|
|
@ -30,21 +30,21 @@ public interface FinancialBDPrizeLogMapper {
|
|
|
|
|
|
|
|
|
|
|
|
@AutoSql(type = SqlType.SELECT)
|
|
|
|
@AutoSql(type = SqlType.SELECT)
|
|
|
|
@AdvanceSelect(addonWhereClause = "prize_type=0")
|
|
|
|
@AdvanceSelect(addonWhereClause = "prize_type=0")
|
|
|
|
List<JSONObject> findByReportAndBD(@Param("record_id") String recordId, @Param("manager_id") int managerId);
|
|
|
|
List<JSONObject> findByReportAndBD(@Param("record_id") String recordId, @Param("manager_id") String managerId);
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT prize_log_id,record_id,manager_id,bd_name,bd_level,SUM(total_amount) total_amount, " +
|
|
|
|
@Select("SELECT prize_log_id,record_id,manager_id,bd_name,bd_level,SUM(total_amount) total_amount, " +
|
|
|
|
"SUM(total_prize) total_prize,SUM(total_donation) total_donation, SUM(send_prize) send_prize, " +
|
|
|
|
"SUM(total_prize) total_prize,SUM(total_donation) total_donation, SUM(send_prize) send_prize, " +
|
|
|
|
"SUM(hold_prize) hold_prize,last_punish,prize_type FROM financial_bd_prize_log fbpl " +
|
|
|
|
"SUM(hold_prize) hold_prize,last_punish,prize_type FROM financial_bd_prize_log fbpl " +
|
|
|
|
"where fbpl.prize_type = 0 and fbpl.record_id = #{record_id} and fbpl.manager_id = #{manager_id} " +
|
|
|
|
"where fbpl.prize_type = 0 and fbpl.record_id = #{record_id} and fbpl.manager_id = #{manager_id} " +
|
|
|
|
"GROUP BY fbpl.manager_id")
|
|
|
|
"GROUP BY fbpl.manager_id")
|
|
|
|
JSONObject findByReportAndBDTotal(@Param("record_id") String recordId, @Param("manager_id") int managerId);
|
|
|
|
JSONObject findByReportAndBDTotal(@Param("record_id") String recordId, @Param("manager_id") String managerId);
|
|
|
|
|
|
|
|
|
|
|
|
@Select("SELECT prize_log_id,record_id,manager_id,bd_name,bd_level,SUM(total_amount) total_amount," +
|
|
|
|
@Select("SELECT prize_log_id,record_id,manager_id,bd_name,bd_level,SUM(total_amount) total_amount," +
|
|
|
|
"SUM(total_prize) total_prize,SUM(total_donation) total_donation, SUM(send_prize) send_prize," +
|
|
|
|
"SUM(total_prize) total_prize,SUM(total_donation) total_donation, SUM(send_prize) send_prize," +
|
|
|
|
"SUM(hold_prize) hold_prize,last_punish,prize_type FROM financial_bd_prize_log fbpl " +
|
|
|
|
"SUM(hold_prize) hold_prize,last_punish,prize_type FROM financial_bd_prize_log fbpl " +
|
|
|
|
"where fbpl.prize_type = 1 and fbpl.manager_id = #{manager_id} " +
|
|
|
|
"where fbpl.prize_type = 1 and fbpl.manager_id = #{manager_id} " +
|
|
|
|
"GROUP BY fbpl.manager_id ")
|
|
|
|
"GROUP BY fbpl.manager_id ")
|
|
|
|
JSONObject findByReportAndGroup(@Param("record_id") String recordId, @Param("manager_id") int managerId);
|
|
|
|
JSONObject findByReportAndGroup(@Param("record_id") String recordId, @Param("manager_id") String managerId);
|
|
|
|
|
|
|
|
|
|
|
|
@AutoSql(type = SqlType.DELETE)
|
|
|
|
@AutoSql(type = SqlType.DELETE)
|
|
|
|
void clearLogsOfReport(@Param("record_id") String recordId);
|
|
|
|
void clearLogsOfReport(@Param("record_id") String recordId);
|
|
|
|