Commit 5e776311 authored by maliang's avatar maliang

类属性修改

parent 3e69c63f
...@@ -13,6 +13,8 @@ public interface CopyrightDao { ...@@ -13,6 +13,8 @@ public interface CopyrightDao {
List<BaseSettlement> selectCopyrightAll(); List<BaseSettlement> selectCopyrightAll();
BaseSettlement selectUnSettlementCount(@Param("copyrightId") Integer copyrightId);
@Update("update settlement_status set status=#{status},status_name=#{statusName} where report_time=#{reportTime} and copyright_id=#{copyrightId}") @Update("update settlement_status set status=#{status},status_name=#{statusName} where report_time=#{reportTime} and copyright_id=#{copyrightId}")
int updateSettlementStatus(@Param("copyrightId") Integer copyrightId,@Param("report_time") String reportTime,@Param("status") Integer status,@Param("statusName") String statusName); int updateSettlementStatus(@Param("copyrightId") Integer copyrightId,@Param("report_time") String reportTime,@Param("status") Integer status,@Param("statusName") String statusName);
} }
...@@ -24,12 +24,25 @@ ...@@ -24,12 +24,25 @@
ORDER BY a.total_amount DESC ; ORDER BY a.total_amount DESC ;
</select> </select>
<select id="selectCopyrightAll" resultType="com.boot.security.server.model.BaseSettlement" > <select id="selectUnSettlementCount" resultType="com.boot.security.server.model.BaseSettlement" >
SELECT a.copyright_id,a.copyright_name SELECT
if (b.jiesuan_ad_amount is null,a.jiesuan_amount,a.jiesuan_amount+b.jiesuan_ad_amount) as all_consume
FROM report_book_settlement_month a FROM report_book_settlement_month a
LEFT JOIN report_book_advert_month b LEFT JOIN report_book_advert_month b
ON a.report_date=b.report_date AND a.batch_id=b.batch_id AND a.batch_name=b.batch_name ON a.report_date=b.report_date AND a.batch_id=b.batch_id AND a.batch_name=b.batch_name
group by a.copyright_id,a.copyright_name left join
settlement_status c
on a.report_date=c.report_date and a.copyright_id=c.copyright_id
WHERE c.status=0
<if test="copyrightId != null">
a.copyright_id =#{copyrightId}
</if>
ORDER BY a.total_amount DESC ;
</select>
<select id="selectCopyrightAll" resultType="com.boot.security.server.model.BaseSettlement" >
SELECT a.copyright_id,a.copyright_name
FROM book_banquanweihu group by copyright_id,copyright_name;
</select> </select>
</mapper> </mapper>
\ No newline at end of file
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