|
@@ -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);
|
|
|
+ }
|
|
|
|
|
|
}
|