|
|
|
@ -93,6 +93,28 @@
|
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<resultMap type="SysFactory" id="SysFactoryResult">
|
|
|
|
|
<result property="factoryId" column="factory_id" />
|
|
|
|
|
<result property="parentId" column="parent_id" />
|
|
|
|
|
<result property="ancestors" column="ancestors" />
|
|
|
|
|
<result property="factoryName" column="factory_name" />
|
|
|
|
|
<result property="orderNum" column="order_num" />
|
|
|
|
|
<result property="leader" column="leader" />
|
|
|
|
|
<result property="phone" column="phone" />
|
|
|
|
|
<result property="email" column="email" />
|
|
|
|
|
<result property="status" column="status" />
|
|
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
|
|
<result property="factoryCode" column="factory_code" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectSysFactoryVo">
|
|
|
|
|
select factory_id, parent_id, ancestors, factory_name, order_num, leader, phone, email, status, del_flag, create_by, create_time, update_by, update_time, factory_code from sys_factory
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBomVo">
|
|
|
|
|
select factory_code, production_version, bom_code, optional_bom, optional_bom_text, pvvd, pved, bom_calculate_number, bom_calculate_unit, bom_base_number, bom_base_unit, component_unit, component_pro_flag, msi, sanka, attr1, attr2, attr3, create_by, create_time, update_by, update_time, remark, current_version from base_bom
|
|
|
|
|
</sql>
|
|
|
|
@ -108,6 +130,20 @@
|
|
|
|
|
from pro_process
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectSysFactoryList" parameterType="SysFactory" resultMap="SysFactoryResult">
|
|
|
|
|
<include refid="selectSysFactoryVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
|
|
|
|
<if test="ancestors != null and ancestors != ''"> and ancestors = #{ancestors}</if>
|
|
|
|
|
<if test="factoryName != null and factoryName != ''"> and factory_name like concat('%', #{factoryName}, '%')</if>
|
|
|
|
|
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
|
|
|
|
<if test="leader != null and leader != ''"> and leader = #{leader}</if>
|
|
|
|
|
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
|
|
|
|
<if test="email != null and email != ''"> and email = #{email}</if>
|
|
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectProProcessList" parameterType="ProProcess" resultMap="ProProcessResult">
|
|
|
|
|
<include refid="selectProProcessVo"/>
|
|
|
|
|
<where>
|
|
|
|
|