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 { ...@@ -31,4 +31,5 @@ public interface SysDeviceMapper {
int updateByPrimaryKey(SysDevice record); int updateByPrimaryKey(SysDevice record);
List<SysDevice> catIndentDevices(String indentNo);
} }
\ No newline at end of file \ No newline at end of file
...@@ -20,9 +20,8 @@ public class DeviceServiceImpl implements DeviceService { ...@@ -20,9 +20,8 @@ public class DeviceServiceImpl implements DeviceService {
if (page != null) { if (page != null) {
PageHelper.startPage(page.getPageIndex(), page.getPageSize(), true); PageHelper.startPage(page.getPageIndex(), page.getPageSize(), true);
} }
SysDeviceExample sysDeviceExample=new SysDeviceExample(); List<SysDevice> list=sysDeviceMapper.catIndentDevices(indentNo);
sysDeviceExample.createCriteria().andIndentNoEqualTo(indentNo); return list;
return sysDeviceMapper.selectByExample(sysDeviceExample);
} }
@Override @Override
......
...@@ -320,4 +320,14 @@ ...@@ -320,4 +320,14 @@
update_by = #{updateBy,jdbcType=INTEGER} update_by = #{updateBy,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </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> </mapper>
\ No newline at end of file \ 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!