laozt 1 year ago
commit 1e01a16184

@ -68,7 +68,7 @@
c.risk_level, c.risk_level,
CONCAT(d.district,'-', d.county) AS districtcounty CONCAT(d.district,'-', d.county) AS districtcounty
FROM b_plan_enterprise a FROM b_plan_enterprise a
left join b_administrative_division d on a.district=d.county_code left join b_administrative_division d on a.district=d.county_code
LEFT JOIN b_enterprise_new c ON a.enterprise_id = c.enterprise_id LEFT JOIN b_enterprise_new c ON a.enterprise_id = c.enterprise_id
<where> <where>
<if test="enterpriseId != null and enterpriseId != ''">and a.enterprise_id = #{enterpriseId}</if> <if test="enterpriseId != null and enterpriseId != ''">and a.enterprise_id = #{enterpriseId}</if>
@ -101,8 +101,9 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
order by lawLevel, law_sort,planned_month+0
</where> </where>
order by a.law_level, a.law_sort,a.planned_month+0
</select> </select>
<delete id="deleteByPlanId"> <delete id="deleteByPlanId">
delete delete

Loading…
Cancel
Save