57017
This commit is contained in:
+11
@@ -7,6 +7,7 @@ import com.adc.da.http.Result;
|
||||
import com.adc.da.slrs.esRevisePlan.service.IEsRevisePlanService;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -44,6 +45,16 @@ public class EsRevisePlanController extends BaseController<EsRevisePlan> {
|
||||
@PostMapping("queryAllPlans")
|
||||
public ResponseMessage<Object> queryAllPlans(EsRevisePlan esRevisePlan){
|
||||
List<EsRevisePlan> esRevisePlans = iEsRevisePlanService.queryAllPlans(esRevisePlan);
|
||||
for (EsRevisePlan revisePlan : esRevisePlans){
|
||||
String area = revisePlan.getArea();
|
||||
if (StringUtils.isNotBlank(area)){
|
||||
if (area.startsWith("[") && area.endsWith("]")){
|
||||
area = area.substring(1,area.length() - 1);
|
||||
area = area.replace("\"","");
|
||||
}
|
||||
}
|
||||
revisePlan.setArea(area);
|
||||
}
|
||||
PageInfo<EsRevisePlan> pageInfo = getPageInfo(esRevisePlan.getPager(),esRevisePlans);
|
||||
return Result.success(pageInfo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user