|
@@ -19,6 +19,7 @@
|
|
|
<result property="createdBy" column="created_by" jdbcType="INTEGER"/>
|
|
|
<result property="updatedAt" column="updated_at" jdbcType="TIMESTAMP"/>
|
|
|
<result property="updatedBy" column="updated_by" jdbcType="INTEGER"/>
|
|
|
+ <result property="orderCode" column="order_code" jdbcType="INTEGER"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!--查询单个-->
|
|
@@ -32,59 +33,62 @@
|
|
|
<!--查询指定行数据-->
|
|
|
<select id="queryAllByLimit" resultMap="WInventoryTransactionTaskMap">
|
|
|
select
|
|
|
- *
|
|
|
- from w_inventory_transaction_task
|
|
|
+ task.*,orders.order_code
|
|
|
+ from w_inventory_transaction_task task
|
|
|
+ left join w_inventory_transaction_orders orders on task.w_inventory_transaction_orders_id=orders.id
|
|
|
<where>
|
|
|
<if test="id != null">
|
|
|
- and id = #{id}
|
|
|
+ and task.id = #{id}
|
|
|
</if>
|
|
|
<if test="wInventoryTransactionOrdersId != null">
|
|
|
- and w_inventory_transaction_orders_id = #{wInventoryTransactionOrdersId}
|
|
|
+ and task.w_inventory_transaction_orders_id = #{wInventoryTransactionOrdersId}
|
|
|
</if>
|
|
|
<if test="taskCode != null and taskCode != ''">
|
|
|
- and task_code = #{taskCode}
|
|
|
+ and task.task_code = #{taskCode}
|
|
|
</if>
|
|
|
<if test="startPosition != null and startPosition != ''">
|
|
|
- and start_position = #{startPosition}
|
|
|
+ and task.start_position = #{startPosition}
|
|
|
</if>
|
|
|
<if test="endPosition != null and endPosition != ''">
|
|
|
- and end_position = #{endPosition}
|
|
|
+ and task.end_position = #{endPosition}
|
|
|
</if>
|
|
|
<if test="vectorCode != null and vectorCode != ''">
|
|
|
- and vector_code = #{vectorCode}
|
|
|
+ and task.vector_code = #{vectorCode}
|
|
|
</if>
|
|
|
<if test="errorInfo != null and errorInfo != ''">
|
|
|
- and error_info = #{errorInfo}
|
|
|
+ and task.error_info = #{errorInfo}
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
- and status = #{status}
|
|
|
+ and task.status = #{status}
|
|
|
</if>
|
|
|
<if test="taskType != null">
|
|
|
- and task_type = #{taskType}
|
|
|
+ and task.task_type = #{taskType}
|
|
|
</if>
|
|
|
<if test="startTime != null">
|
|
|
- and start_time = #{startTime}
|
|
|
+ and task.start_time = #{startTime}
|
|
|
</if>
|
|
|
<if test="endTime != null">
|
|
|
- and end_time = #{endTime}
|
|
|
+ and task.end_time = #{endTime}
|
|
|
</if>
|
|
|
<if test="remarks != null and remarks != ''">
|
|
|
- and remarks = #{remarks}
|
|
|
+ and task.remarks = #{remarks}
|
|
|
</if>
|
|
|
<if test="createdAt != null">
|
|
|
- and created_at = #{createdAt}
|
|
|
+ and task.created_at = #{createdAt}
|
|
|
</if>
|
|
|
<if test="createdBy != null">
|
|
|
- and created_by = #{createdBy}
|
|
|
+ and task.created_by = #{createdBy}
|
|
|
</if>
|
|
|
<if test="updatedAt != null">
|
|
|
- and updated_at = #{updatedAt}
|
|
|
+ and task.updated_at = #{updatedAt}
|
|
|
</if>
|
|
|
<if test="updatedBy != null">
|
|
|
- and updated_by = #{updatedBy}
|
|
|
+ and task.updated_by = #{updatedBy}
|
|
|
+ </if>
|
|
|
+ <if test="orderCode != null">
|
|
|
+ and orders.order_code = #{orderCode}
|
|
|
</if>
|
|
|
</where>
|
|
|
- limit #{pageable.offset}, #{pageable.pageSize}
|
|
|
</select>
|
|
|
|
|
|
<!--统计总行数-->
|