@@ -9,6 +9,7 @@ import com.ningdatech.pmapi.projectlib.enumeration.ProjectStatusEnum; | |||||
import com.ningdatech.pmapi.projectlib.model.dto.ProjectRenewalFundDeclarationDTO; | import com.ningdatech.pmapi.projectlib.model.dto.ProjectRenewalFundDeclarationDTO; | ||||
import com.ningdatech.pmapi.projectlib.model.entity.Project; | import com.ningdatech.pmapi.projectlib.model.entity.Project; | ||||
import com.ningdatech.pmapi.projectlib.model.entity.ProjectRenewalFundDeclaration; | import com.ningdatech.pmapi.projectlib.model.entity.ProjectRenewalFundDeclaration; | ||||
import com.ningdatech.pmapi.projectlib.model.po.ProjectRenewalFundDeclarationPO; | |||||
import com.ningdatech.pmapi.projectlib.model.req.ProjectRenewalListReq; | import com.ningdatech.pmapi.projectlib.model.req.ProjectRenewalListReq; | ||||
import com.ningdatech.pmapi.projectlib.model.vo.ProjectRenewalFundDeclarationVO; | import com.ningdatech.pmapi.projectlib.model.vo.ProjectRenewalFundDeclarationVO; | ||||
import com.ningdatech.pmapi.projectlib.service.IProjectRenewalFundDeclarationService; | import com.ningdatech.pmapi.projectlib.service.IProjectRenewalFundDeclarationService; | ||||
@@ -44,7 +45,7 @@ public class ProjectRenewalFundManage { | |||||
* @return | * @return | ||||
*/ | */ | ||||
public PageVo<ProjectRenewalFundDeclarationVO> list(ProjectRenewalListReq req) { | public PageVo<ProjectRenewalFundDeclarationVO> list(ProjectRenewalListReq req) { | ||||
Page<ProjectRenewalFundDeclaration> page = req.page(); | |||||
Page<ProjectRenewalFundDeclarationPO> page = req.page(); | |||||
projectRenewalFundDeclarationService.pageSql(page, req); | projectRenewalFundDeclarationService.pageSql(page, req); | ||||
long total; | long total; | ||||
if ((total = page.getTotal()) == 0) { | if ((total = page.getTotal()) == 0) { | ||||
@@ -81,6 +82,7 @@ public class ProjectRenewalFundManage { | |||||
vo.setProjectType(project.getProjectType()); | vo.setProjectType(project.getProjectType()); | ||||
vo.setStage(project.getStage()); | vo.setStage(project.getStage()); | ||||
vo.setStatus(project.getStatus()); | vo.setStatus(project.getStatus()); | ||||
vo.setBuildOrgName(project.getBuildOrgName()); | |||||
return vo; | return vo; | ||||
} | } | ||||
@@ -17,5 +17,5 @@ import org.apache.ibatis.annotations.Param; | |||||
*/ | */ | ||||
public interface ProjectRenewalFundDeclarationMapper extends BaseMapper<ProjectRenewalFundDeclaration> { | public interface ProjectRenewalFundDeclarationMapper extends BaseMapper<ProjectRenewalFundDeclaration> { | ||||
Page<ProjectRenewalFundDeclarationPO> pageSql(Page<ProjectRenewalFundDeclaration> page,@Param("param") ProjectRenewalListReq req); | |||||
Page<ProjectRenewalFundDeclarationPO> pageSql(Page<ProjectRenewalFundDeclarationPO> page,@Param("param") ProjectRenewalListReq req); | |||||
} | } |
@@ -10,7 +10,7 @@ | |||||
prfd.project_year,prfd.annual_payment_amount,prfd.have_amount, | prfd.project_year,prfd.annual_payment_amount,prfd.have_amount, | ||||
prfd.gov_own_finance_amount,prfd.gov_superior_finance_amount, | prfd.gov_own_finance_amount,prfd.gov_superior_finance_amount, | ||||
prfd.bank_lending_amount,prfd.other_amount,prfd.approval_status,prfd.deleted, | prfd.bank_lending_amount,prfd.other_amount,prfd.approval_status,prfd.deleted, | ||||
p.project_type | |||||
p.project_type,p.project_name,p.build_org_name | |||||
from nd_project_renewal_fund_declaration prfd | from nd_project_renewal_fund_declaration prfd | ||||
left join nd_project p on prfd.project_id = p.id | left join nd_project p on prfd.project_id = p.id | ||||
where prfd.deleted = false | where prfd.deleted = false | ||||
@@ -40,6 +40,9 @@ public class ProjectRenewalFundDeclarationPO implements Serializable { | |||||
@ApiModelProperty("项目年份") | @ApiModelProperty("项目年份") | ||||
private Integer projectYear; | private Integer projectYear; | ||||
@ApiModelProperty("项目名称") | |||||
private String projectName; | |||||
@ApiModelProperty("年度支付金额") | @ApiModelProperty("年度支付金额") | ||||
private BigDecimal annualPaymentAmount; | private BigDecimal annualPaymentAmount; | ||||
@@ -70,6 +73,9 @@ public class ProjectRenewalFundDeclarationPO implements Serializable { | |||||
@ApiModelProperty("项目类型") | @ApiModelProperty("项目类型") | ||||
private Integer projectType; | private Integer projectType; | ||||
@ApiModelProperty("建设单位名称") | |||||
private String buildOrgName; | |||||
@ApiModelProperty("是否删除 false未删 true已删") | @ApiModelProperty("是否删除 false未删 true已删") | ||||
private Boolean deleted; | private Boolean deleted; | ||||
@@ -79,6 +79,9 @@ public class ProjectRenewalFundDeclarationVO implements Serializable { | |||||
@ApiModelProperty("关联项目名字") | @ApiModelProperty("关联项目名字") | ||||
private String projectName; | private String projectName; | ||||
@ApiModelProperty("建设单位名称") | |||||
private String buildOrgName; | |||||
@ApiModelProperty("项目类型 1建设 2运维") | @ApiModelProperty("项目类型 1建设 2运维") | ||||
private Integer projectType; | private Integer projectType; | ||||
} | } |
@@ -16,5 +16,5 @@ import com.ningdatech.pmapi.projectlib.model.req.ProjectRenewalListReq; | |||||
*/ | */ | ||||
public interface IProjectRenewalFundDeclarationService extends IService<ProjectRenewalFundDeclaration> { | public interface IProjectRenewalFundDeclarationService extends IService<ProjectRenewalFundDeclaration> { | ||||
Page<ProjectRenewalFundDeclarationPO> pageSql(Page<ProjectRenewalFundDeclaration> page, ProjectRenewalListReq req); | |||||
Page<ProjectRenewalFundDeclarationPO> pageSql(Page<ProjectRenewalFundDeclarationPO> page, ProjectRenewalListReq req); | |||||
} | } |
@@ -25,7 +25,7 @@ public class ProjectRenewalFundDeclarationServiceImpl extends | |||||
private final ProjectRenewalFundDeclarationMapper mapper; | private final ProjectRenewalFundDeclarationMapper mapper; | ||||
@Override | @Override | ||||
public Page<ProjectRenewalFundDeclarationPO> pageSql(Page<ProjectRenewalFundDeclaration> page, ProjectRenewalListReq req) { | |||||
public Page<ProjectRenewalFundDeclarationPO> pageSql(Page<ProjectRenewalFundDeclarationPO> page, ProjectRenewalListReq req) { | |||||
return mapper.pageSql(page,req); | return mapper.pageSql(page,req); | ||||
} | } | ||||
} | } |