| | |
| | | <result column="source" property="source"/> |
| | | <result column="purpose" property="purpose"/> |
| | | <result column="charger" property="charger"/> |
| | | <result column="create_time" property="createTime"/> |
| | | <result column="device_create_time" property="createTime"/> |
| | | </resultMap> |
| | | |
| | | <select id="getFwDeviceMaintainPlanById" resultMap="fwDeviceMaintainPlanResultMap"> |
| | | select |
| | | <sql id="deviceFields"> |
| | | b.device_name, |
| | | b.device_type, |
| | | b.device_att, |
| | |
| | | b.source, |
| | | b.purpose, |
| | | b.charger, |
| | | b.create_time, |
| | | a.* |
| | | b.create_time |
| | | </sql> |
| | | |
| | | <select id="getFwDeviceMaintainPlanById" resultMap="fwDeviceMaintainPlanResultMap"> |
| | | select |
| | | <include refid="deviceFields"/>,a.* |
| | | from |
| | | ja_fw_device_maintain_plan a |
| | | left join ja_fw_device b on (a.device_id = b.id) |
| | |
| | | |
| | | <select id="selectFwDeviceMaintainPlanPage" resultMap="fwDeviceMaintainPlanResultMap"> |
| | | select |
| | | b.device_name, |
| | | b.device_type, |
| | | b.device_att, |
| | | b.device_model, |
| | | b.belong_dept, |
| | | b.device_specification, |
| | | b.manufacturer, |
| | | b.source, |
| | | b.purpose, |
| | | b.charger, |
| | | b.create_time, |
| | | a.* |
| | | <include refid="deviceFields"/>,a.* |
| | | from |
| | | ja_fw_device_maintain_plan a |
| | | left join ja_fw_device b on (a.device_id = b.id) |
| | |
| | | <result column="source" property="source"/> |
| | | <result column="purpose" property="purpose"/> |
| | | <result column="charger" property="charger"/> |
| | | <result column="create_time" property="createTime"/> |
| | | <result column="device_create_time" property="createTime"/> |
| | | </resultMap> |
| | | |
| | | <select id="getFwDeviceScrapById" resultMap="fwDeviceScrapResultMap"> |
| | | select |
| | | <sql id="deviceFields"> |
| | | b.device_name, |
| | | b.device_type, |
| | | b.device_att, |
| | |
| | | b.source, |
| | | b.purpose, |
| | | b.charger, |
| | | b.create_time, |
| | | a.* |
| | | b.create_time |
| | | </sql> |
| | | |
| | | <select id="getFwDeviceScrapById" resultMap="fwDeviceScrapResultMap"> |
| | | select |
| | | <include refid="deviceFields"/>,a.* |
| | | from |
| | | ja_fw_device_scrap a |
| | | left join ja_fw_device b on (a.device_id = b.id) |
| | |
| | | |
| | | <select id="selectFwDeviceScrapPage" resultMap="fwDeviceScrapResultMap"> |
| | | select |
| | | b.device_name, |
| | | b.device_type, |
| | | b.device_att, |
| | | b.device_model, |
| | | b.belong_dept, |
| | | b.device_specification, |
| | | b.manufacturer, |
| | | b.source, |
| | | b.purpose, |
| | | b.charger, |
| | | b.create_time, |
| | | a.* |
| | | <include refid="deviceFields"/>,a.* |
| | | from |
| | | ja_fw_device_scrap a |
| | | left join ja_fw_device b on (a.device_id = b.id) |