zhangtao
dongdingding 1 year ago
parent 0c60073fc9
commit ccfeb6db63

@ -54,10 +54,10 @@ public class BPlanEnterpriseServiceImpl extends ServiceImpl<BPlanEnterpriseMappe
@Override
public List<BPlanEnterpriseZhifaResponse> getZhifa(checkResultRequest req) {
if(req.getDistrict()!=null && req.getDistrict().contains("000000000")){
String result = req.getDistrict().replaceAll("0+$", "");
req.setDistrict(result);
}
// if(req.getDistrict()!=null && req.getDistrict().contains("000000000")){
// String result = req.getDistrict().replaceAll("0+$", "");
// req.setDistrict(result);
// }
return bPlanEnterpriseMapper.getZhifa(req);
}

@ -87,6 +87,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="subdistrict != null and subdistrict != ''"> and s.SUBDISTRICT like concat('%',#{subdistrict}, '%') </if>
<if test="aboveDesignatedTwo != null and aboveDesignatedTwo != ''"> and s.ABOVE_DESIGNATED_TWO = #{aboveDesignatedTwo}</if>
<if test="isPoint != null and isPoint != ''">and s.is_point=#{isPoint}</if>
<if test="enterpriseName != null and enterpriseName != ''">and s.enterprise_name like concat('%',#{enterpriseName}, '%')</if>
</where>
</select>

Loading…
Cancel
Save