|
@@ -15,8 +15,14 @@ public interface QcsMainCostDao extends BaseDao<QcsMainCostDo> {
|
|
|
@Select("select SUM(AMOUNT) as AMOUNTSUM from qcs_main_detail where DELETED='0' and MAINID=#{costId}")
|
|
|
Map<String, Object> getAmountSum(@Param("costId") String costId);
|
|
|
|
|
|
+ @Select("select SUM(ACTAMOUNT) as ACTAMOUNTSUM from qcs_main_detail where DELETED='0' and MAINID=#{costId}")
|
|
|
+ Map<String, Object> getActAmountSum(@Param("costId") String costId);
|
|
|
+
|
|
|
@Select("select * from qcs_loss_detail where DELETED='0' and MAINID=#{costId}")
|
|
|
- List<QcsLossDetailDo> getCostSum(@Param("costId") String costId);
|
|
|
+ List<QcsLossDetailDo> getLossDetails(@Param("costId") String costId);
|
|
|
+
|
|
|
+ @Select("select * from qcs_loss_detail where DELETED='0' and MAINID=#{costId} and SUBMITDATE is not null")
|
|
|
+ List<QcsLossDetailDo> getTjLossDetails(@Param("costId") String costId);
|
|
|
|
|
|
@Select("select * from qcs_main_cost where DELETED='0' and BASEID=#{baseId} and DATE_FORMAT(YEARMONTH, '%Y-%m')=#{yearmonth}")
|
|
|
List<QcsMainCostDo> getMainCosts(@Param("baseId") String baseId, @Param("yearmonth") String yearmonth);
|