|
@@ -6,6 +6,7 @@ import com.rongwei.bsentity.domain.QcsSubjectConfigDo;
|
|
|
import com.rongwei.rwcommon.base.BaseDao;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
+import org.apache.ibatis.annotations.Update;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -15,6 +16,9 @@ public interface QcsMainCostDao extends BaseDao<QcsMainCostDo> {
|
|
|
@Select("select SUM(case when ACTAMOUNT is null then AMOUNT else ACTAMOUNT end) as AMOUNTSUM from qcs_main_detail where DELETED='0' and MAINID=#{costId}")
|
|
|
Map<String, Object> getAmountSum(@Param("costId") String costId);
|
|
|
|
|
|
+ @Select("select SUM(ADDAMOUNT) as ADDAMOUNT from qcs_recovery_amount where DELETED='0' and BASEID=#{baseId} and STATUS='已提交' and DATE_FORMAT(SUBMITDATE, '%Y-%m')=#{yearMonth} and COSTTYPE=#{costType}")
|
|
|
+ Map<String, Object> getAddAmountSum(@Param("baseId") String baseId, @Param("yearMonth") String yearMonth, @Param("costType") String costType);
|
|
|
+
|
|
|
@Select("select * from qcs_loss_detail where DELETED='0' and MAINID=#{costId}")
|
|
|
List<QcsLossDetailDo> getLossDetails(@Param("costId") String costId);
|
|
|
|
|
@@ -26,4 +30,7 @@ public interface QcsMainCostDao extends BaseDao<QcsMainCostDo> {
|
|
|
|
|
|
@Select("select * from qcs_subject_config where DELETED='0' order by SECSUBJECT,SORT")
|
|
|
List<QcsSubjectConfigDo> getSubjectConfig();
|
|
|
+
|
|
|
+ @Update("update qcs_recovery_amount set STATUS='已提交',SUBMITDATE=NOW() where ID=#{id}")
|
|
|
+ void tjAmountData(@Param("id") String id);
|
|
|
}
|