从源更新
This commit is contained in:
@@ -60,12 +60,6 @@
|
||||
<bind name="number" value="'%' + _parameter.number + '%'"/>
|
||||
and dh.Number like #{number}
|
||||
</if>
|
||||
<if test="dhIds != null and dhIds != ''">
|
||||
and dh.Id in
|
||||
<foreach item="dhId" index="index" collection="dhIds.split(',')" open="(" separator="," close=")">
|
||||
#{dhId}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="beginTime != null and beginTime != ''">
|
||||
and dh.OperTime >= #{beginTime}
|
||||
</if>
|
||||
@@ -93,19 +87,19 @@
|
||||
<bind name="number" value="'%' + _parameter.number + '%'"/>
|
||||
and Number like #{number}
|
||||
</if>
|
||||
<if test="dhIds != null and dhIds != ''">
|
||||
and Id in
|
||||
<foreach item="dhId" index="index" collection="dhIds.split(',')" open="(" separator="," close=")">
|
||||
#{dhId}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="beginTime != null and beginTime != ''">
|
||||
and OperTime >= #{beginTime}
|
||||
</if>
|
||||
<if test="endTime != null and endTime != ''">
|
||||
and OperTime <= #{endTime}
|
||||
</if>
|
||||
and ifnull(delete_Flag,'0') !='1'
|
||||
<if test="materialParam != null">
|
||||
and (m.`Name` like '%${materialParam}%' or m.Model like '%${materialParam}%')
|
||||
</if>
|
||||
<if test="depotIds != null">
|
||||
and di.DepotId in (${depotIds})
|
||||
</if>
|
||||
and ifnull(jsh_depothead.delete_Flag,'0') !='1'
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
@@ -2,16 +2,15 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jsh.erp.datasource.mappers.DepotItemMapperEx">
|
||||
|
||||
<resultMap id="HeaderIdResultMap" type="com.jsh.erp.datasource.entities.DepotItemVo4HeaderId">
|
||||
<result column="HeaderId" jdbcType="BIGINT" property="headerid" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="DetailByTypeAndMIdResultMap" type="com.jsh.erp.datasource.entities.DepotItemVo4DetailByTypeAndMId">
|
||||
<result column="Number" jdbcType="VARCHAR" property="number" />
|
||||
<result column="newType" jdbcType="VARCHAR" property="newtype" />
|
||||
<result column="b_num" jdbcType="BIGINT" property="bnum" />
|
||||
<result column="oTime" jdbcType="TIMESTAMP" property="otime" />
|
||||
</resultMap>
|
||||
<resultMap id="HeaderIdResultMap" type="com.jsh.erp.datasource.entities.DepotItemVo4HeaderId">
|
||||
<result column="HeaderId" jdbcType="BIGINT" property="headerid" />
|
||||
</resultMap>
|
||||
|
||||
<resultMap extends="com.jsh.erp.datasource.mappers.DepotItemMapper.BaseResultMap" id="ResultAndMaterialMap" type="com.jsh.erp.datasource.entities.DepotItemVo4Material">
|
||||
<result column="mName" jdbcType="VARCHAR" property="mname" />
|
||||
|
||||
Reference in New Issue
Block a user