|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<resultMap type="FlowConfigHeader" id="FlowConfigHeaderResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="flowName" column="flow_name" />
|
|
|
+ <result property="flowType" column="flow_type" />
|
|
|
<result property="skuType" column="sku_type" />
|
|
|
<result property="skuTypeFlag" column="sku_type_flag" />
|
|
|
<result property="qty" column="qty" />
|
|
@@ -36,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<resultMap type="FlowConfigHeader" id="FlowConfigHeaderVOResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="flowName" column="flow_name" />
|
|
|
+ <result property="flowType" column="flow_type" />
|
|
|
<result property="skuType" column="sku_type" />
|
|
|
<result property="skuTypeFlag" column="sku_type_flag" />
|
|
|
<result property="qty" column="qty" />
|
|
@@ -90,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFlowConfigHeaderVo">
|
|
|
- select id, flow_name, sku_type, sku_type_flag, qty, qty_flag, weight, weight_flag, supplier, supplier_flag, location_from,location_from_flag, location_from_device, location_to,location_to_flag, location_to_device, create_by, create_time, update_by, update_time, remark,location_from_strategy_flag ,location_to_strategy_flag from flow_config_header
|
|
|
+ select id, flow_name,flow_type, sku_type, sku_type_flag, qty, qty_flag, weight, weight_flag, supplier, supplier_flag, location_from,location_from_flag, location_from_device, location_to,location_to_flag, location_to_device, create_by, create_time, update_by, update_time, remark,location_from_strategy_flag ,location_to_strategy_flag from flow_config_header
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFlowConfigHeaderList" parameterType="FlowConfigHeader" resultMap="FlowConfigHeaderResult">
|
|
@@ -108,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="selectFlowConfigHeaderById" parameterType="Long" resultMap="FlowConfigHeaderFlowConfigDetailsResult">
|
|
|
- select a.id, a.flow_name, a.sku_type, a.sku_type_flag, a.qty, a.qty_flag, a.weight, a.weight_flag, a.supplier, a.supplier_flag, a.location_from,a.location_from_flag, a.location_from_device, a.location_to,a.location_to_flag, a.location_to_device, a.create_by, a.create_time, a.update_by, a.update_time, a.remark,
|
|
|
+ select a.id, a.flow_name,a.flow_type, a.sku_type, a.sku_type_flag, a.qty, a.qty_flag, a.weight, a.weight_flag, a.supplier, a.supplier_flag, a.location_from,a.location_from_flag, a.location_from_device, a.location_to,a.location_to_flag, a.location_to_device, a.create_by, a.create_time, a.update_by, a.update_time, a.remark,
|
|
|
a.qty_range,a.weight_range,a.supplier_range,b.id as sub_id, b.header_id as sub_header_id, b.lotatt_id as sub_lotatt_id,cf.lotatt_name as sub_lotatt_name, b.lotatt_flag as sub_lotatt_flag, b.create_by as sub_create_by, b.create_time as sub_create_time, b.update_by as sub_update_by, b.update_time as sub_update_time, b.remark as sub_remark,
|
|
|
a.location_from_strategy_flag,a.location_to_strategy_flag
|
|
|
from flow_config_header a
|
|
@@ -121,6 +123,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into flow_config_header
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="flowName != null">flow_name,</if>
|
|
|
+ <if test="flowType != null">flow_type,</if>
|
|
|
<if test="skuType != null">sku_type,</if>
|
|
|
<if test="skuTypeFlag != null">sku_type_flag,</if>
|
|
|
<if test="qty != null">qty,</if>
|
|
@@ -148,6 +151,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="flowName != null">#{flowName},</if>
|
|
|
+ <if test="flowType != null">#{flowType},</if>
|
|
|
<if test="skuType != null">#{skuType},</if>
|
|
|
<if test="skuTypeFlag != null">#{skuTypeFlag},</if>
|
|
|
<if test="qty != null">#{qty},</if>
|
|
@@ -179,6 +183,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update flow_config_header
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="flowName != null">flow_name = #{flowName},</if>
|
|
|
+ <if test="flowType != null">flow_type = #{flowType},</if>
|
|
|
<if test="skuType != null">sku_type = #{skuType},</if>
|
|
|
<if test="skuTypeFlag != null">sku_type_flag = #{skuTypeFlag},</if>
|
|
|
<if test="qty != null">qty = #{qty},</if>
|