parent
5ba6a77690
commit
c51a7de2df
@ -0,0 +1,17 @@
|
||||
package com.dsic.gj_erp.dao.zyjh;
|
||||
|
||||
import com.dsic.gj_erp.bean.jhgk.DmYdjhLj;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class PPBGongDto {
|
||||
Integer id;
|
||||
String dcCh;
|
||||
String dcPl;
|
||||
String zyq;
|
||||
List<DmYdjhLj> ljList;
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
<?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.zyjh.DmYppyzMapper">
|
||||
|
||||
<resultMap id="bgListResult" type="dmYppyz">
|
||||
<id column="id" property="id"/>
|
||||
<result column="dwxx_id" property="dwxxId" />
|
||||
<result column="dc_ch" property="dcCh" />
|
||||
<result column="dc_pl" property="dcPl" />
|
||||
<collection property="ljList" ofType="dmYdjhLj" columnPrefix="lj_">
|
||||
<id column="id" property="id" />
|
||||
<result column="czbh" property="czbh" />
|
||||
<result column="pl" property="pl" />
|
||||
<result column="pl" property="pl" />
|
||||
<result column="tlth" property="tlth" />
|
||||
<result column="ljbh" property="ljbh" />
|
||||
<result column="qq" property="qq" />
|
||||
<result column="dw" property="dw" />
|
||||
</collection>
|
||||
</resultMap>
|
||||
|
||||
<select id="bgList" resultMap="bgListResult">
|
||||
select
|
||||
a.id,a.dwxx_id,a.dc_ch,a.dc_pl,
|
||||
c.id lj_id,c.czbh lj_czbh,c.pl lj_pl,c.tlth lj_tlth,c.ljbh lj_ljbh,c.qq lj_qq,c.dw lj_dw
|
||||
from
|
||||
dm_yppyz a,
|
||||
dm_ydjh b left join dm_ydjh_lj c on b.dc_ch=c.czbh and b.dc_pl=c.pl and b.tzbh=c.tlth
|
||||
where
|
||||
a.dc_ch=b.dc_ch and a.dc_pl=b.dc_pl and a.status='设置垛位' and b.zyq1=#{zyq} and a.dc_ch=#{dcCh}
|
||||
and isnull(c.qq,'')='' and isnull(c.dw,'')=''
|
||||
order by a.dc_ch,a.dc_pl
|
||||
</select>
|
||||
</mapper>
|
Loading…
Reference in new issue