|
@@ -1,5 +1,6 @@
|
|
|
package com.rongwei.bscommon.sys.dao;
|
|
|
|
|
|
+import com.rongwei.bsentity.domain.QcsLossDetailDo;
|
|
|
import com.rongwei.bsentity.domain.QcsMainCostDo;
|
|
|
import com.rongwei.bsentity.domain.QcsSubjectConfigDo;
|
|
|
import com.rongwei.rwcommon.base.BaseDao;
|
|
@@ -14,6 +15,9 @@ 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 * from qcs_loss_detail where DELETED='0' and MAINID=#{costId}")
|
|
|
+ List<QcsLossDetailDo> getCostSum(@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);
|
|
|
|