Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
54b4e9557a
|
|
@ -22,6 +22,11 @@ public class PmAttDevice {
|
|||
*/
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 出场编号
|
||||
*/
|
||||
private String serialNumber;
|
||||
|
||||
/**
|
||||
* 工程id
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -25,6 +25,11 @@ public class PmAttDeviceVo {
|
|||
@Excel(name = "考勤机名称",sort = 2)
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 出场编号
|
||||
*/
|
||||
private String serialNumber;
|
||||
|
||||
/**
|
||||
* 工程id
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -2,15 +2,15 @@
|
|||
<!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">
|
||||
<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)
|
||||
values (#{deviceCode}, #{deviceName},#{proId}, #{createUser}, #{updateUser},
|
||||
values (#{deviceCode}, #{deviceName},#{serialNumber},#{proId}, #{createUser}, #{updateUser},
|
||||
#{createTime}, #{updateTime},#{devModel},#{onLine})
|
||||
</insert>
|
||||
<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)
|
||||
values (#{deviceCode}, #{deviceName},#{proId}, #{createUser}, #{updateUser},
|
||||
values (#{deviceCode}, #{deviceName},#{serialNumber},#{proId}, #{createUser}, #{updateUser},
|
||||
#{createTime}, #{updateTime})
|
||||
</insert>
|
||||
<update id="updatePmAttDevice">
|
||||
|
|
@ -24,6 +24,7 @@
|
|||
<select id="selectPmAttDeviceList" resultType="com.bonus.bmw.domain.vo.PmAttDeviceVo">
|
||||
select pad2.device_code as deviceCode,
|
||||
pad2.device_name as deviceName,
|
||||
pad2.serial_number as serialNumber,
|
||||
pad2.pro_id as proId,
|
||||
pp.pro_name as proName,
|
||||
pp.is_shanghai as isShanghai,
|
||||
|
|
@ -35,6 +36,9 @@
|
|||
<if test="deviceCode!=null and deviceCode!=''">
|
||||
and pad2.device_code LIKE CONCAT('%', #{deviceCode}, '%')
|
||||
</if>
|
||||
<if test="serialNumber!=null and serialNumber!=''">
|
||||
and pad2.serial_number LIKE CONCAT('%', #{serialNumber}, '%')
|
||||
</if>
|
||||
<if test="deviceName!=null and deviceName!=''">
|
||||
and pad2.device_name LIKE CONCAT('%', #{deviceName}, '%')
|
||||
</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue