zhangtao
dongdingding 2 years ago
parent 0c60073fc9
commit ccfeb6db63

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

Loading…
Cancel
Save