| 对比新文件 |
| | |
| | | <?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="com.ruoyi.technology.mapper.TechnologyBomStructureMapper"> |
| | | |
| | | <!-- 閫氱敤鏌ヨ鏄犲皠缁撴灉 --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.technology.pojo.TechnologyBomStructure"> |
| | | <id column="id" property="id" /> |
| | | <result column="parent_id" property="parentId" /> |
| | | <result column="product_model_id" property="productModelId" /> |
| | | <result column="operation_id" property="operationId" /> |
| | | <result column="unit_quantity" property="unitQuantity" /> |
| | | <result column="demanded_quantity" property="demandedQuantity" /> |
| | | <result column="unit" property="unit" /> |
| | | <result column="bom_id" property="bomId" /> |
| | | <result column="create_user" property="createUser" /> |
| | | <result column="dept_id" property="deptId" /> |
| | | </resultMap> |
| | | |
| | | <select id="listByBomId" resultType="com.ruoyi.technology.bean.vo.TechnologyBomStructureVo"> |
| | | select tbs.*, |
| | | p.product_name as productName, |
| | | pm.product_id as productId, |
| | | pm.model, |
| | | top1.name as operationName |
| | | from technology_bom_structure tbs |
| | | left join product_model pm on tbs.product_model_id = pm.id |
| | | left join product p on pm.product_id = p.id |
| | | left join technology_operation top1 on tbs.operation_id = top1.id |
| | | where tbs.bom_id = #{bomId} |
| | | order by tbs.id |
| | | </select> |
| | | </mapper> |