Explorar el Código

甬台温计量bug

chenr hace 3 meses
padre
commit
da8ea8a8ac

+ 2 - 0
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/FormulaServiceImpl.java

@@ -2411,6 +2411,8 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
         return reportResults;
     }
 
+
+
     /**
      * 中期支付报表封面
      */

+ 10 - 1
blade-service/blade-manager/src/main/java/org/springblade/manager/utils/FormEndPayUtil.java

@@ -18,7 +18,7 @@ public class FormEndPayUtil {
     public  void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
         FormEndPayUtil.jdbcTemplate = jdbcTemplate;
     }
-    public static FormEndPay selectFoemEndPay(Long periodId,Long contractId,String formNumber){
+    public static FormEndPay selectFormEndPay(Long periodId,Long contractId,String formNumber){
         String sql="Select * from s_meter_form_end_pay where period_id="+periodId+" and contract_id="+contractId+" and form_number="+"'"+formNumber+"'";
         List<FormEndPay> query = jdbcTemplate.query(sql, new BeanPropertyRowMapper<>(FormEndPay.class));
         if(query.isEmpty()){
@@ -28,6 +28,11 @@ public class FormEndPayUtil {
         }
     }
 
+    public static void delFormEndPay(Long periodId,Long contractId,String formNumber){
+        String sql="deleted from s_meter_form_end_pay where period_id="+periodId+" and contract_id="+contractId+" and form_number="+"'"+formNumber+"'";
+        jdbcTemplate.execute(sql);
+    }
+
     public static List<ContractMeterPeriod> selectList(Long contractId){
         String sql="Select * from s_contract_meter_period where contract_id="+contractId+" and is_deleted=0"+" order by start_date";
         return jdbcTemplate.query(sql,new BeanPropertyRowMapper<>(ContractMeterPeriod.class));
@@ -74,5 +79,9 @@ public class FormEndPayUtil {
             chapterEndPay.getCurrentPeriodEndPay()
         );
     }
+    public static void delChapterEndPay(Long periodId,Long contractId,String formNumber){
+        String sql="deleted from s_meter_chapter_end_pay where period_id="+periodId+" and contract_id="+contractId+" and form_number="+"'"+formNumber+"'";
+        jdbcTemplate.execute(sql);
+    }
 
 }