|
|
|
<?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.dsic.gj_erp.mapper.jhgk.DmSygdxqMapper">
|
|
|
|
|
|
|
|
<resultMap id="sqgdxqVo" type="dmSygdxq">
|
|
|
|
<id column="id" property="id" jdbcType="VARCHAR" />
|
|
|
|
<result column="dc_ch" property="dcCh" jdbcType="VARCHAR" />
|
|
|
|
<result column="dc_pl" property="dcPl" jdbcType="VARCHAR" />
|
|
|
|
<result column="dc_fd" property="dcFd" jdbcType="VARCHAR" />
|
|
|
|
<result column="zdh" property="zdh" jdbcType="VARCHAR" />
|
|
|
|
<result column="xzglxq" property="xzglxq" jdbcType="VARCHAR" />
|
|
|
|
<collection property="bomList" ofType="dmBom" javaType="java.util.ArrayList" columnPrefix="bom_" >
|
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
|
<result column="dcch" property="dcch" jdbcType="VARCHAR" />
|
|
|
|
<result column="pl" property="pl" jdbcType="VARCHAR" />
|
|
|
|
<result column="fd" property="fd" jdbcType="VARCHAR" />
|
|
|
|
<result column="kw" property="kw" jdbcType="VARCHAR" />
|
|
|
|
<result column="zl" property="zl" jdbcType="VARCHAR" />
|
|
|
|
<result column="tzbh" property="tzbh" jdbcType="VARCHAR" />
|
|
|
|
<result column="wpgg" property="wpgg" jdbcType="VARCHAR" />
|
|
|
|
<result column="wpcz" property="wpcz" jdbcType="VARCHAR" />
|
|
|
|
<result column="ljsl" property="ljsl" jdbcType="DOUBLE" />
|
|
|
|
<result column="fkgs" property="fkgs" jdbcType="VARCHAR" />
|
|
|
|
<result column="tlsl" property="tlsl" jdbcType="VARCHAR" />
|
|
|
|
</collection>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<select id="getXqWithBom" resultMap="sqgdxqVo">
|
|
|
|
select
|
|
|
|
xq.id,
|
|
|
|
xq.dc_ch,
|
|
|
|
xq.dc_pl,
|
|
|
|
xq.dc_fd,
|
|
|
|
xq.xzglxq,
|
|
|
|
bom.id as bom_id,
|
|
|
|
bom.dcch as bom_dcch,
|
|
|
|
bom.pl as bom_pl,
|
|
|
|
bom.fd as bom_fd,
|
|
|
|
bom.kw as bom_kw,
|
|
|
|
bom.zl as bom_zl,
|
|
|
|
bom.tzbh as bom_tzbh,
|
|
|
|
bom.wpgg as bom_wpgg,
|
|
|
|
bom.wpcz as bom_wpcz,
|
|
|
|
bom.ljsl as bom_ljsl,
|
|
|
|
bom.fkgs as bom_fkgs,
|
|
|
|
bom.tlsl as bom_tlsl
|
|
|
|
from
|
|
|
|
dm_sygdxq xq left join dm_bom bom on bom.dcch = xq.DC_CH and bom.pl = xq.DC_PL and bom.fd = xq.DC_FD
|
|
|
|
where
|
|
|
|
xq.xzglxq between #{from} and #{to}
|
|
|
|
order by xq.xzglxq
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|