|
@@ -4,6 +4,7 @@ import com.mixsmart.utils.StringUtils;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springblade.core.tool.utils.BeanUtil;
|
|
|
import org.springblade.core.tool.utils.Func;
|
|
|
+import org.springblade.manager.dto.TreeNode;
|
|
|
import org.springblade.manager.entity.ContractInfo;
|
|
|
import org.springblade.manager.entity.ProjectInfo;
|
|
|
import org.springblade.manager.entity.TrialSelfDataRecord;
|
|
@@ -89,7 +90,7 @@ public class FormulaDaoImpl implements IFormulaDao {
|
|
|
@Override
|
|
|
public Function<Long, List<Payment>> getPaymentListFc() {
|
|
|
return contractId->{
|
|
|
- String paySql="select a.form_number number,a.form_name name ,a.current_meter_total completed ,current_meter_money money ,b.chapter_number chapter, b.contract_money contractMoney,b.change_money,b.unit,contract_total ,change_total,c.sort,c.id periodId from s_inventory_form_apply a join s_contract_inventory_form b on a.contract_form_id=b.id join s_contract_meter_period c on a.contract_period_id=c.id where a.is_deleted=0 and a.approve_status=2 and a.contract_id="+contractId;
|
|
|
+ String paySql="select a.form_number number,a.form_name name ,a.current_meter_total completed ,current_meter_money money ,b.id formId,b.chapter_number chapter, b.contract_money contractMoney,b.change_money,b.unit,contract_total ,change_total,c.sort,c.id periodId from s_inventory_form_apply a join s_contract_inventory_form b on a.contract_form_id=b.id join s_contract_meter_period c on a.contract_period_id=c.id where a.is_deleted=0 and a.approve_status=2 and a.contract_id="+contractId;
|
|
|
return this.jdbcTemplate.query(paySql,new BeanPropertyRowMapper<>(Payment.class));
|
|
|
};
|
|
|
}
|