7 changed files with 68 additions and 1 deletions
@ -0,0 +1,28 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.kms.warn.mapper.BsSgcJsjdBuiZrdwMapper"> |
|||
|
|||
<sql id="info"> |
|||
select ei.enterprise_name,bz.* |
|||
from bs_sgc_jsjd_bui_ente_info ei left join bs_sgc_jsjd_bui_zrdw bz on ei.id=bz.unit_id |
|||
</sql> |
|||
|
|||
<resultMap id="BsSgcJsjdBuiZrdw" type="BsSgcJsjdBuiZrdw"> |
|||
<id property="id" column="id"/> |
|||
<result property="unitName" column="enterprise_name"/> |
|||
<result property="attachment" column="attachment"/> |
|||
<result property="rectificationSituation" column="rectification_situation"/> |
|||
</resultMap> |
|||
|
|||
|
|||
<select id="listById" resultMap="BsSgcJsjdBuiZrdw"> |
|||
<include refid="info"></include> |
|||
where ei.id in ( |
|||
SELECT unit_id from bs_sgc_jsjd_bui_zrdw WHERE inspection_id=#{id} |
|||
) |
|||
</select> |
|||
|
|||
|
|||
</mapper> |
Loading…
Reference in new issue