12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?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.gyee.viewticket.mapper.ticket.PolineMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.gyee.viewticket.model.ticket.Poline">
- <id column="ID" property="id" />
- <result column="PONUM" property="ponum" />
- <result column="POLINENUM" property="polinenum" />
- <result column="ITEMNUM" property="itemnum" />
- <result column="DESCRIPTION" property="description" />
- <result column="WAREHOUSE" property="warehouse" />
- <result column="ORDERQTY" property="orderqty" />
- <result column="ORDERUNIT" property="orderunit" />
- <result column="CONVERSION" property="conversion" />
- <result column="UNITCOST" property="unitcost" />
- <result column="TAXUNITCOST" property="taxunitcost" />
- <result column="LINECOST" property="linecost" />
- <result column="TAXLINECOST" property="taxlinecost" />
- <result column="RECEIVEDQTY" property="receivedqty" />
- <result column="RECEIVEDUNITCOST" property="receivedunitcost" />
- <result column="RECEIVEDTOTALCOST" property="receivedtotalcost" />
- <result column="TAXCODE" property="taxcode" />
- <result column="TAXRATE" property="taxrate" />
- <result column="TAX" property="tax" />
- <result column="REJECTEDQTY" property="rejectedqty" />
- <result column="VENDELIVERYDATE" property="vendeliverydate" />
- <result column="ENTERDATE" property="enterdate" />
- <result column="ENTERBY" property="enterby" />
- <result column="REQUESTEDBY" property="requestedby" />
- <result column="REQDELIVERYDATE" property="reqdeliverydate" />
- <result column="MANUFACTURER" property="manufacturer" />
- <result column="MODELNUM" property="modelnum" />
- <result column="SERVICE" property="service" />
- <result column="STOCKTYPE" property="stocktype" />
- <result column="REMARK" property="remark" />
- <result column="LOCATION" property="location" />
- <result column="RECEIPTSCOMPLETE" property="receiptscomplete" />
- <result column="INSPECTION" property="inspection" />
- <result column="LOADEDCOST" property="loadedcost" />
- <result column="PRORATED" property="prorated" />
- <result column="PRORATECOST" property="proratecost" />
- <result column="WONUM" property="wonum" />
- <result column="TASKNUM" property="tasknum" />
- <result column="BUDNUM" property="budnum" />
- <result column="BUDITEM" property="buditem" />
- </resultMap>
- <!-- 通用查询结果列 -->
- <sql id="Base_Column_List">
- ID, PONUM, POLINENUM, ITEMNUM, DESCRIPTION, WAREHOUSE, ORDERQTY, ORDERUNIT, CONVERSION, UNITCOST, TAXUNITCOST, LINECOST, TAXLINECOST, RECEIVEDQTY, RECEIVEDUNITCOST, RECEIVEDTOTALCOST, TAXCODE, TAXRATE, TAX, REJECTEDQTY, VENDELIVERYDATE, ENTERDATE, ENTERBY, REQUESTEDBY, REQDELIVERYDATE, MANUFACTURER, MODELNUM, SERVICE, STOCKTYPE, REMARK, LOCATION, RECEIPTSCOMPLETE, INSPECTION, LOADEDCOST, PRORATED, PRORATECOST, WONUM, TASKNUM, BUDNUM, BUDITEM
- </sql>
- <select id="selectPolinePageList" resultType="java.util.Map">
- SELECT
- p.ponum,
- p.status,
- p.statusdate,
- p.vendor,
- p.totalcost,
- p.totaltax,
- p.sitenum,
- p.description,
- l.itemnum,
- l.warehouse,
- l.orderqty,
- l.orderunit,
- l.unitcost,
- l.linecost,
- l.enterdate,
- l.enterby,
- i.modelnum
- FROM
- POLINE l
- LEFT JOIN Po p ON p.ponum = l.ponum
- LEFT JOIN ITEM i on i.itemnum = l.itemnum
- <where>
- <if test=" '' != vendor and null != vendor ">
- and p.vendor like '%${vendor}%'
- </if>
- <if test=" '' != warehouse and null != warehouse ">
- and l.warehouse like '%${warehouse}%'
- </if>
- <if test=" '' != ponum and null != ponum ">
- and p.ponum like '%${ponum}%'
- </if>
- <if test=" '' != starttime and starttime !=null and endtime !=null and '' != endtime">
- and l.enterdate >= #{starttime} and l.enterdate <= #{endtime}
- </if>
- </where>
- </select>
- </mapper>
|