zhangtao
dongdingding 1 year ago
parent 31e8ca8509
commit 88d878e6c6

@ -98,7 +98,7 @@ public class BPlanEnterpriseController extends BaseController {
.sum();
double ptSum = (double) checkEnterpriseCountSum /plannedEnterpriseCountSum;
BPlanEnterPriseTreeResponse resultObject = new BPlanEnterPriseTreeResponse();
resultObject.setInstitutionName("苏州");
resultObject.setInstitutionName("苏州");
resultObject.setPlannedEnterpriseCount(plannedEnterpriseCountSum);
resultObject.setCheckEnterpriseCount(checkEnterpriseCountSum);
resultObject.setPt(ptSum);
@ -208,8 +208,9 @@ public class BPlanEnterpriseController extends BaseController {
*/
@GetMapping("/getZhifa")
@ApiOperation(value = "执法结果-企业详情")
public AjaxResult getZhifa(@Valid checkResultRequest req) {
return success(bPlanEnterpriseService.getZhifa(req));
public TableDataInfo getZhifa(@Valid checkResultRequest req) {
startPage();
return getDataTable(bPlanEnterpriseService.getZhifa(req));
}
/**

@ -101,6 +101,7 @@ public class BPlanEnterprise implements Serializable {
*
*/
@ApiModelProperty(value = "行政区划")
@Excel(name = "行政区划")
private String district;

@ -29,17 +29,6 @@ public class checkResultRequest {
*/
@ApiModelProperty(value = "检查状态 1=已检查2=未检查")
private Integer checkStatus;
/**
* size
*/
@ApiModelProperty("size")
private int pageSize;
/**
* num
*/
@ApiModelProperty("num")
private int pageNum;
}

@ -7,6 +7,7 @@ import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
import com.ruoyi.programManagement.entity.request.PlanMxRequest;
import com.ruoyi.programManagement.entity.request.checkResultRequest;
import com.ruoyi.programManagement.entity.request.zhifaRequest;
import com.ruoyi.programManagement.entity.response.BPlanEnterpriseZhifaResponse;
import com.ruoyi.programManagement.entity.response.zhifaCountResponse;
import com.ruoyi.programManagement.entity.response.zhifaPlanResponse;
@ -44,7 +45,7 @@ public interface BPlanEnterpriseService extends IService<BPlanEnterprise> {
* @param req
* @return
*/
Map<String, Object> getZhifa(checkResultRequest req);
List<BPlanEnterpriseZhifaResponse>getZhifa (checkResultRequest req);
/**

@ -52,14 +52,8 @@ public class BPlanEnterpriseServiceImpl extends ServiceImpl<BPlanEnterpriseMappe
}
@Override
public Map<String, Object> getZhifa(checkResultRequest req) {
List<BPlanEnterpriseZhifaResponse> getZhifa = bPlanEnterpriseMapper.getZhifa(req);
PageHelper.startPage(req.getPageNum(), req.getPageSize());
PageInfo<BPlanEnterpriseZhifaResponse> pageInfo = new PageInfo<>(getZhifa);
Map<String, Object> result = new HashMap<>();
result.put("total", pageInfo.getTotal());
result.put("list", pageInfo.getList());
return result;
public List<BPlanEnterpriseZhifaResponse> getZhifa(checkResultRequest req) {
return bPlanEnterpriseMapper.getZhifa(req);
}
@Override

@ -74,6 +74,7 @@
<where>
<if test="req.plannedYear!=null and req.plannedYear!=''">
b.planned_year =#{req.plannedYear}
</if>
</where>
GROUP BY SUBSTRING(a.county, 1, 8) )s

@ -29,7 +29,7 @@
and ent_code = #{req.entCode}
</if>
<if test=" req.enterpriseName !=null">
and enterprise_name = #{req.enterpriseName}
and enterprise_name like concat('%',#{req.enterpriseName},'%')
</if>
</where>
order by id desc

Loading…
Cancel
Save