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.
64 lines
3.2 KiB
64 lines
3.2 KiB
<?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="org.springblade.modules.material.mapper.MaterialEngineerOutboundMapper">
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
<resultMap id="materialEngineerOutboundResultMap" type="org.springblade.modules.material.pojo.entity.MaterialEngineerOutboundEntity">
|
|
<result column="id" property="id"/>
|
|
<result column="material_id" property="materialId"/>
|
|
<result column="company_id" property="companyId"/>
|
|
<result column="operation_id" property="operationId"/>
|
|
<result column="operation_name" property="operationName"/>
|
|
<result column="engineer_id" property="engineerId"/>
|
|
<result column="engineer_name" property="engineerName"/>
|
|
<result column="code" property="code"/>
|
|
<result column="name" property="name"/>
|
|
<result column="type" property="type"/>
|
|
<result column="model" property="model"/>
|
|
<result column="power" property="power"/>
|
|
<result column="description" property="description"/>
|
|
<result column="brand" property="brand"/>
|
|
<result column="stock" property="stock"/>
|
|
<result column="unit" property="unit"/>
|
|
<result column="create_user" property="createUser"/>
|
|
<result column="create_dept" property="createDept"/>
|
|
<result column="create_time" property="createTime"/>
|
|
<result column="update_user" property="updateUser"/>
|
|
<result column="update_time" property="updateTime"/>
|
|
<result column="status" property="status"/>
|
|
<result column="is_deleted" property="isDeleted"/>
|
|
<result column="out_type" property="outType"/>
|
|
<result column="out_direct" property="outDirect"/>
|
|
<result column="out_count" property="outCount"/>
|
|
<result column="out_amount" property="outAmount"/>
|
|
<result column="allow_user" property="allowUser"/>
|
|
<result column="allow_time" property="allowTime"/>
|
|
<result column="apply_id" property="applyId"/>
|
|
<result column="remarks" property="remarks"/>
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectMaterialEngineerOutboundPage" resultMap="materialEngineerOutboundResultMap">
|
|
select * from sf_material_engineer_outbound where is_deleted = 0
|
|
</select>
|
|
|
|
<select id="findMaterialOutbound" resultType="org.springblade.modules.material.pojo.vo.MaterialOutboundVO">
|
|
SELECT s.*,o.number as orderNumber,o.customer_name,o.power_station_code,CONCAT(o.province,o.city,o.area,o.customer_address)AS address
|
|
,site.name as siteName
|
|
FROM sf_material_outbound s
|
|
left join sf_operation_order o on o.id = s.relate_order_id
|
|
left join sf_operation_site site on site.id=s.company_id
|
|
where s.keep_type='1'
|
|
<if test="materialEngineerOutbound.companyId !=null and materialEngineerOutbound.companyId !='' ">
|
|
AND s.company_id LIKE concat('%',#{materialEngineerOutbound.companyId},'%')
|
|
</if>
|
|
ORDER BY s.create_time desc
|
|
|
|
</select>
|
|
|
|
<select id="exportMaterialOutbound" resultType="org.springblade.modules.material.excel.MaterialOutboundExcel">
|
|
SELECT * FROM sf_material_outbound ${ew.customSqlSegment}
|
|
</select>
|
|
|
|
</mapper>
|