master
parent
6a26e8a18d
commit
c1108ce904
@ -1,46 +0,0 @@
|
||||
<?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.pgd.PgdQmjhMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap" type="com.dsic.gj_erp.bean.pgd.PgdQmjh">
|
||||
<id column="id" property="id" />
|
||||
<result column="czbh" property="czbh" />
|
||||
<result column="pl" property="pl" />
|
||||
<result column="fd" property="fd" />
|
||||
<result column="kw" property="kw" />
|
||||
<result column="zl" property="zl" />
|
||||
<result column="tlth" property="tlth" />
|
||||
<result column="ptblx" property="ptblx" />
|
||||
<result column="ljbh" property="ljbh" />
|
||||
<result column="ljmc" property="ljmc" />
|
||||
<result column="ljgg" property="ljgg" />
|
||||
<result column="ljcz" property="ljcz" />
|
||||
<result column="wpfl" property="wpfl" />
|
||||
<result column="jldw" property="jldw" />
|
||||
<result column="sl" property="sl" />
|
||||
<result column="qjgjhrq" property="qjgjhrq" />
|
||||
<result column="qfxqrqxz" property="qfxqrqxz" />
|
||||
<result column="qfxqrqdz" property="qfxqrqdz" />
|
||||
<result column="gylx" property="gylx" />
|
||||
<result column="qjgfzry" property="qjgfzry" />
|
||||
<result column="qsbbh" property="qsbbh" />
|
||||
<result column="qjgry" property="qjgry" />
|
||||
<result column="qjgksrq" property="qjgksrq" />
|
||||
<result column="qjgjsrq" property="qjgjsrq" />
|
||||
<result column="zt" property="zt" />
|
||||
<result column="bzry" property="bzry" />
|
||||
<result column="bzrq" property="bzrq" />
|
||||
<result column="xfry" property="xfry" />
|
||||
<result column="xfrq" property="xfrq" />
|
||||
<result column="fkry" property="fkry" />
|
||||
<result column="fkrq" property="fkrq" />
|
||||
<result column="fkyy" property="fkyy" />
|
||||
</resultMap>
|
||||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
czbh, pl, fd, kw, zl, tlth, ptblx, ljbh, ljmc, ljgg, ljcz, wpfl, jldw, sl, qjgjhrq, qfxqrqxz, qfxqrqdz, gylx, qjgfzry, qsbbh, qjgry, qjgksrq, qjgjsrq, zt, bzry, bzrq, xfry, xfrq, fkry, fkrq, fkyy, id
|
||||
</sql>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,153 @@
|
||||
<?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.pgd.PgdQmjhMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap" type="com.dsic.gj_erp.bean.pgd.PgdQmjh">
|
||||
<id column="id" property="id" />
|
||||
<result column="czbh" property="czbh" />
|
||||
<result column="pl" property="pl" />
|
||||
<result column="fd" property="fd" />
|
||||
<result column="kw" property="kw" />
|
||||
<result column="zl" property="zl" />
|
||||
<result column="tlth" property="tlth" />
|
||||
<result column="ptblx" property="ptblx" />
|
||||
<result column="ljbh" property="ljbh" />
|
||||
<result column="ljmc" property="ljmc" />
|
||||
<result column="ljgg" property="ljgg" />
|
||||
<result column="ljcz" property="ljcz" />
|
||||
<result column="wpfl" property="wpfl" />
|
||||
<result column="jldw" property="jldw" />
|
||||
<result column="sl" property="sl" />
|
||||
<result column="qjgjhrq" property="qjgjhrq" />
|
||||
<result column="qfxqrqxz" property="qfxqrqxz" />
|
||||
<result column="qfxqrqdz" property="qfxqrqdz" />
|
||||
<result column="gylx" property="gylx" />
|
||||
<result column="qjgfzry" property="qjgfzry" />
|
||||
<result column="qsbbh" property="qsbbh" />
|
||||
<result column="qjgry" property="qjgry" />
|
||||
<result column="qjgksrq" property="qjgksrq" />
|
||||
<result column="qjgjsrq" property="qjgjsrq" />
|
||||
<result column="zt" property="zt" />
|
||||
<result column="bzry" property="bzry" />
|
||||
<result column="bzrq" property="bzrq" />
|
||||
<result column="xfry" property="xfry" />
|
||||
<result column="xfrq" property="xfrq" />
|
||||
<result column="fkry" property="fkry" />
|
||||
<result column="fkrq" property="fkrq" />
|
||||
<result column="fkyy" property="fkyy" />
|
||||
</resultMap>
|
||||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
czbh, pl, fd, kw, zl, tlth, ptblx, ljbh, ljmc, ljgg, ljcz, wpfl, jldw, sl, qjgjhrq, qfxqrqxz, qfxqrqdz, gylx, qjgfzry, qsbbh, qjgry, qjgksrq, qjgjsrq, zt, bzry, bzrq, xfry, xfrq, fkry, fkrq, fkyy, id
|
||||
</sql>
|
||||
|
||||
<select id="selectQmByQgAndJh" resultType="com.dsic.gj_erp.bean.pgd.Qmqz" parameterType="map">
|
||||
SELECT
|
||||
dm_ydjh_lj.czbh as lczbh,
|
||||
dm_ydjh_lj.pl as lpl ,
|
||||
dm_ydjh_lj.fd as lfd,
|
||||
dm_ydjh_lj.kw as lkw,
|
||||
dm_ydjh_lj.zl as lzl,
|
||||
dm_ydjh_lj.tlth as ltlth,
|
||||
dm_ydjh_lj.ptblx as lptblx,
|
||||
dm_ydjh_lj.ljbh as ljbh,
|
||||
dm_ydjh_lj.ljmc as lljmc,
|
||||
dm_ydjh_lj.ljgg as lljgg,
|
||||
dm_ydjh_lj.ljcz as lljcz,
|
||||
dm_ydjh_lj.wpfl as lwpfl,
|
||||
dm_ydjh_lj.jldw as ljldw,
|
||||
dm_ydjh_lj.sl as lsl,
|
||||
dm_ydjh_lj.qfxqrqxz as lqfxqrqxz,
|
||||
dm_ydjh_lj.qfxqrqdz as lqfxqrqdz,
|
||||
dm_ydjh_lj.gylx as gylx,
|
||||
|
||||
|
||||
dm_ydjh_lj.id,
|
||||
pgd_qgjh.czbh,
|
||||
pgd_qgjh.pl,
|
||||
pgd_qgjh.fd,
|
||||
pgd_qgjh.zl,
|
||||
pgd_qgjh.lqlb,
|
||||
pgd_qgjh.kw,
|
||||
pgd_qgjh.tlth,
|
||||
pgd_qgjh.wpgg,
|
||||
pgd_qgjh.wpcz,
|
||||
pgd_qgjh.wpzl,
|
||||
pgd_qgjh.qgjhrq,
|
||||
pgd_qgjh.qfxqrqxz,
|
||||
pgd_qgjh.qfxqrqdz,
|
||||
pgd_qgjh.pwjhwgrq,
|
||||
pgd_qgjh.qgfzry,
|
||||
pgd_qgjh.hxsbbh,
|
||||
pgd_qgjh.hxcd,
|
||||
pgd_qgjh.hxkccd,
|
||||
pgd_qgjh.qgsbbh,
|
||||
pgd_qgjh.qgcd,
|
||||
pgd_qgjh.qgkccd,
|
||||
pgd_qgjh.hxry,
|
||||
pgd_qgjh.hxksrq,
|
||||
pgd_qgjh.hxjsrq,
|
||||
pgd_qgjh.qgry,
|
||||
pgd_qgjh.qgksrq,
|
||||
pgd_qgjh.qgjsrq,
|
||||
pgd_qgjh.zt,
|
||||
pgd_qgjh.bzry,
|
||||
pgd_qgjh.bzrq,
|
||||
pgd_qgjh.xfry,
|
||||
pgd_qgjh.xfrq,
|
||||
pgd_qgjh.fkry,
|
||||
pgd_qgjh.fkrq,
|
||||
pgd_qgjh.fkyy
|
||||
|
||||
|
||||
|
||||
|
||||
FROM
|
||||
pgd_qgjh LEFT JOIN dm_ydjh_lj on pgd_qgjh.czbh=dm_ydjh_lj.czbh and pgd_qgjh.pl= dm_ydjh_lj.pl and pgd_qgjh.tlth =dm_ydjh_lj.tlth
|
||||
where 1=1
|
||||
<if test=" dcch!=null and dcch!=''">
|
||||
and dm_ydjh_lj.czbh=#{dcch}
|
||||
</if>
|
||||
<if test=" pl!=null and pl!=''">
|
||||
and dm_ydjh_lj.pl=#{pl}
|
||||
</if>
|
||||
<if test=" tlth!=null and tlth!=''">
|
||||
and dm_ydjh_lj.tlth=#{tlth}
|
||||
</if>
|
||||
|
||||
<if test="lx=='q'.toString()">
|
||||
and isnull(dm_ydjh_lj.qdr,'')=''
|
||||
<if test=" q!=null and q!=''">
|
||||
and ISNULL(dm_ydjh_lj.qbs,'')='Y'
|
||||
</if>
|
||||
|
||||
</if>
|
||||
|
||||
<if test="lx=='d'.toString()">
|
||||
and isnull(dm_ydjh_lj.dmdr,'')=''
|
||||
<if test=" d!=null and d!=''">
|
||||
and ISNULL(dm_ydjh_lj.dmbs,'')='Y'
|
||||
</if>
|
||||
|
||||
</if>
|
||||
|
||||
<if test="lx=='p'.toString()">
|
||||
and isnull(dm_ydjh_lj.pkdr,'')=''
|
||||
<if test=" p!=null and p!=''">
|
||||
and ISNULL(dm_ydjh_lj.p,'')='Y'
|
||||
</if>
|
||||
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
Loading…
Reference in new issue