You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?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.xjfast.mapper.CodelheaderMapper"> <resultMap id="BaseResultMap" type="com.xjfast.entity.Codelheader"> <id column="Site" jdbcType="VARCHAR" property="site"/> <id column="DelNo" jdbcType="VARCHAR" property="delno"/> <result column="DelDate" jdbcType="TIMESTAMP" property="deldate"/> <result column="UserName" jdbcType="VARCHAR" property="username"/> <result column="EnteredDate" jdbcType="TIMESTAMP" property="entereddate"/> <result column="Receiver" jdbcType="VARCHAR" property="receiver"/> <result column="DelAddID" jdbcType="VARCHAR" property="deladdid"/> <result column="BillAirwayNo" jdbcType="VARCHAR" property="billairwayno"/> <result column="ForwarderID" jdbcType="VARCHAR" property="forwarderid"/> <result column="CustomerID" jdbcType="VARCHAR" property="customerid"/> <result column="Remark" jdbcType="VARCHAR" property="remark"/> <result column="CreditFlag" jdbcType="CHAR" property="creditflag"/> <result column="PayerCustomerID" jdbcType="VARCHAR" property="payercustomerid"/> <result column="CommonDelFlag" jdbcType="CHAR" property="commondelflag"/> <result column="EmailCanSendFlag" jdbcType="CHAR" property="emailcansendflag"/> <result column="PrintTotalBoxCount" jdbcType="INTEGER" property="printtotalboxcount"/> <result column="PrintBoxSeqNo" jdbcType="INTEGER" property="printboxseqno"/> </resultMap> <sql id="Base_Column_List"> Site , DelNo, DelDate, UserName, EnteredDate, Receiver, DelAddID, BillAirwayNo, ForwarderID, CustomerID, Remark, CreditFlag, PayerCustomerID, CommonDelFlag, EmailCanSendFlag, PrintTotalBoxCount, PrintBoxSeqNo </sql> <select id="searchCodelheader" resultType="com.xjfast.entity.vo.CodelheaderVo" parameterType="com.xjfast.entity.query.CodelheaderQuery"> SELECT h.*,d.ShipQty,d.PartNo,d.WarehouseID FROM CODelHeader h LEFT JOIN CODelDetail d on (d.DelNo = h.DelNo) <where> <if test="active != null and active != ''"> h.Active = #{active} </if> <if test="partNo != null and partNo != '' "> and d.PartNo = #{partNo} </if> <if test="warehouseId != null and warehouseId != '' "> and d.WarehouseID = #{warehouseId} </if> <if test="deliverydate != null "> and CONVERT(varchar(10),h.DeliveryDate,120) <![CDATA[>=]]> CONVERT(varchar(10),#{deliverydate},120) </if>
</where> </select>
</mapper>
|