Commit e8709b29 by xiaoyj

修改设备清单列表

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21737 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 62e064d5
......@@ -31,4 +31,5 @@ public interface SysDeviceMapper {
int updateByPrimaryKey(SysDevice record);
List<SysDevice> catIndentDevices(String indentNo);
}
\ No newline at end of file
......@@ -20,9 +20,8 @@ public class DeviceServiceImpl implements DeviceService {
if (page != null) {
PageHelper.startPage(page.getPageIndex(), page.getPageSize(), true);
}
SysDeviceExample sysDeviceExample=new SysDeviceExample();
sysDeviceExample.createCriteria().andIndentNoEqualTo(indentNo);
return sysDeviceMapper.selectByExample(sysDeviceExample);
List<SysDevice> list=sysDeviceMapper.catIndentDevices(indentNo);
return list;
}
@Override
......
......@@ -320,4 +320,14 @@
update_by = #{updateBy,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
<select id="catIndentDevices" resultType="com.glsx.ordercenter.pojo.SysDevice">
SELECT
sd.device_no AS deviceNO,
sda.data_value AS deviceName
FROM
sys_device sd
INNER JOIN sys_dict_data sda ON sd.device_type = sda.data_key
WHERE
sd.indent_no = #{indentNo}
</select>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!