增加一个设备出场编码
This commit is contained in:
parent
e8a677f615
commit
ced8513428
|
|
@ -22,6 +22,11 @@ public class PmAttDevice {
|
||||||
*/
|
*/
|
||||||
private String deviceName;
|
private String deviceName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出场编号
|
||||||
|
*/
|
||||||
|
private String serialNumber;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 工程id
|
* 工程id
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,11 @@ public class PmAttDeviceVo {
|
||||||
@Excel(name = "考勤机名称",sort = 2)
|
@Excel(name = "考勤机名称",sort = 2)
|
||||||
private String deviceName;
|
private String deviceName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出场编号
|
||||||
|
*/
|
||||||
|
private String serialNumber;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 工程id
|
* 工程id
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -2,15 +2,15 @@
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.bonus.bmw.mapper.PmAttDeviceMapper">
|
<mapper namespace="com.bonus.bmw.mapper.PmAttDeviceMapper">
|
||||||
<insert id="addPmAttDevice">
|
<insert id="addPmAttDevice">
|
||||||
insert into pm_att_device (device_code, device_name, pro_id,create_user, update_user,
|
insert into pm_att_device (device_code, device_name,serial_number, pro_id,create_user, update_user,
|
||||||
create_time, update_time,dev_model,on_line)
|
create_time, update_time,dev_model,on_line)
|
||||||
values (#{deviceCode}, #{deviceName},#{proId}, #{createUser}, #{updateUser},
|
values (#{deviceCode}, #{deviceName},#{serialNumber},#{proId}, #{createUser}, #{updateUser},
|
||||||
#{createTime}, #{updateTime},#{devModel},#{onLine})
|
#{createTime}, #{updateTime},#{devModel},#{onLine})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="addPmAttDeviceHis">
|
<insert id="addPmAttDeviceHis">
|
||||||
insert into pm_att_device_his (device_code, device_name, pro_id,create_user, update_user,
|
insert into pm_att_device_his (device_code, device_name,serial_number, pro_id,create_user, update_user,
|
||||||
create_time, update_time)
|
create_time, update_time)
|
||||||
values (#{deviceCode}, #{deviceName},#{proId}, #{createUser}, #{updateUser},
|
values (#{deviceCode}, #{deviceName},#{serialNumber},#{proId}, #{createUser}, #{updateUser},
|
||||||
#{createTime}, #{updateTime})
|
#{createTime}, #{updateTime})
|
||||||
</insert>
|
</insert>
|
||||||
<update id="updatePmAttDevice">
|
<update id="updatePmAttDevice">
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
<select id="selectPmAttDeviceList" resultType="com.bonus.bmw.domain.vo.PmAttDeviceVo">
|
<select id="selectPmAttDeviceList" resultType="com.bonus.bmw.domain.vo.PmAttDeviceVo">
|
||||||
select pad2.device_code as deviceCode,
|
select pad2.device_code as deviceCode,
|
||||||
pad2.device_name as deviceName,
|
pad2.device_name as deviceName,
|
||||||
|
pad2.serial_number as serialNumber,
|
||||||
pad2.pro_id as proId,
|
pad2.pro_id as proId,
|
||||||
pp.pro_name as proName,
|
pp.pro_name as proName,
|
||||||
pp.is_shanghai as isShanghai,
|
pp.is_shanghai as isShanghai,
|
||||||
|
|
@ -35,6 +36,9 @@
|
||||||
<if test="deviceCode!=null and deviceCode!=''">
|
<if test="deviceCode!=null and deviceCode!=''">
|
||||||
and pad2.device_code LIKE CONCAT('%', #{deviceCode}, '%')
|
and pad2.device_code LIKE CONCAT('%', #{deviceCode}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="serialNumber!=null and serialNumber!=''">
|
||||||
|
and pad2.serial_number LIKE CONCAT('%', #{serialNumber}, '%')
|
||||||
|
</if>
|
||||||
<if test="deviceName!=null and deviceName!=''">
|
<if test="deviceName!=null and deviceName!=''">
|
||||||
and pad2.device_name LIKE CONCAT('%', #{deviceName}, '%')
|
and pad2.device_name LIKE CONCAT('%', #{deviceName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue