设备唯一标识符
This commit is contained in:
parent
7bdeb39530
commit
d574a6b142
|
|
@ -47,6 +47,11 @@ public class DevInfo extends BaseEntity {
|
||||||
@ApiModelProperty(value = "设备编码")
|
@ApiModelProperty(value = "设备编码")
|
||||||
private String code;
|
private String code;
|
||||||
|
|
||||||
|
/** 设备唯一标识符,用户输入,比如车架号 */
|
||||||
|
@Excel(name = "设备唯一标识符")
|
||||||
|
@ApiModelProperty(value = "设备唯一标识符")
|
||||||
|
private String identifyCode;
|
||||||
|
|
||||||
@ApiModelProperty(value = "装备名称")
|
@ApiModelProperty(value = "装备名称")
|
||||||
@NotBlank
|
@NotBlank
|
||||||
private String deviceName;
|
private String deviceName;
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<resultMap type="com.bonus.material.device.domain.vo.DevInfoVo" id="DevInfoResult">
|
<resultMap type="com.bonus.material.device.domain.vo.DevInfoVo" id="DevInfoResult">
|
||||||
<result property="maId" column="ma_id" />
|
<result property="maId" column="ma_id" />
|
||||||
<result property="code" column="code" />
|
<result property="code" column="code" />
|
||||||
|
<result property="identifyCode" column="identify_code" />
|
||||||
<result property="typeId" column="type_id" />
|
<result property="typeId" column="type_id" />
|
||||||
<result property="maStatus" column="ma_status" />
|
<result property="maStatus" column="ma_status" />
|
||||||
<result property="leaseScope" column="lease_scope" />
|
<result property="leaseScope" column="lease_scope" />
|
||||||
|
|
@ -43,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectDevInfoVo">
|
<sql id="selectDevInfoVo">
|
||||||
select ma_id, device_name, device_weight, device_count, code, type_id, ma_status, lease_scope, location, province_id, city_id, area_id, brand, model_name, production_date, working_hours, serial_number,
|
select ma_id, device_name, device_weight, device_count, code, identify_code, type_id, ma_status, lease_scope, location, province_id, city_id, area_id, brand, model_name, production_date, working_hours, serial_number,
|
||||||
pic_url, js_month_price, js_day_price, description, gps_code, own_co, create_time,
|
pic_url, js_month_price, js_day_price, description, gps_code, own_co, create_time,
|
||||||
creator, update_time, person, person_phone, update_by, specification, deposit, is_operator, is_active, update_time, update_by
|
creator, update_time, person, person_phone, update_by, specification, deposit, is_operator, is_active, update_time, update_by
|
||||||
from ma_dev_info
|
from ma_dev_info
|
||||||
|
|
@ -53,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
SELECT
|
SELECT
|
||||||
d.ma_id as maId,
|
d.ma_id as maId,
|
||||||
d.code as code,
|
d.code as code,
|
||||||
|
d.identify_code as identifyCode,
|
||||||
d.device_name as deviceName,
|
d.device_name as deviceName,
|
||||||
d.device_weight as deviceWeight,
|
d.device_weight as deviceWeight,
|
||||||
d.device_count as deviceCount,
|
d.device_count as deviceCount,
|
||||||
|
|
@ -170,6 +172,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
SELECT
|
SELECT
|
||||||
d.ma_id as maId,
|
d.ma_id as maId,
|
||||||
d.code as code,
|
d.code as code,
|
||||||
|
d.identify_code as identifyCode,
|
||||||
d.device_name as deviceName,
|
d.device_name as deviceName,
|
||||||
d.device_count as deviceCount,
|
d.device_count as deviceCount,
|
||||||
d.device_weight as deviceWeight,
|
d.device_weight as deviceWeight,
|
||||||
|
|
@ -215,6 +218,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
SELECT
|
SELECT
|
||||||
d.ma_id as maId,
|
d.ma_id as maId,
|
||||||
d.code as code,
|
d.code as code,
|
||||||
|
identify_code as identifyCode,
|
||||||
d.device_name as deviceName,
|
d.device_name as deviceName,
|
||||||
d.device_weight as deviceWeight,
|
d.device_weight as deviceWeight,
|
||||||
d.device_count as deviceCount,
|
d.device_count as deviceCount,
|
||||||
|
|
@ -273,6 +277,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="deviceWeight != null and deviceWeight != '' ">device_weight,</if>
|
<if test="deviceWeight != null and deviceWeight != '' ">device_weight,</if>
|
||||||
<if test="deviceCount != null">device_count,</if>
|
<if test="deviceCount != null">device_count,</if>
|
||||||
<if test="code != null and code != '' ">code,</if>
|
<if test="code != null and code != '' ">code,</if>
|
||||||
|
<if test="identifyCode != null and identifyCode != '' ">identify_code,</if>
|
||||||
<if test="typeId != null and typeId != ''">type_id,</if>
|
<if test="typeId != null and typeId != ''">type_id,</if>
|
||||||
<if test="maStatus != null">ma_status,</if>
|
<if test="maStatus != null">ma_status,</if>
|
||||||
<if test="leaseScope != null and leaseScope != ''">lease_scope,</if>
|
<if test="leaseScope != null and leaseScope != ''">lease_scope,</if>
|
||||||
|
|
@ -600,6 +605,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="deviceWeight != null and deviceWeight != '' ">device_weight,</if>
|
<if test="deviceWeight != null and deviceWeight != '' ">device_weight,</if>
|
||||||
<if test="deviceCount != null">device_count,</if>
|
<if test="deviceCount != null">device_count,</if>
|
||||||
<if test="code != null and code != '' ">code,</if>
|
<if test="code != null and code != '' ">code,</if>
|
||||||
|
<if test="identifyCode != null and identifyCode != '' ">identify_code,</if>
|
||||||
<if test="typeId != null and typeId != ''">type_id,</if>
|
<if test="typeId != null and typeId != ''">type_id,</if>
|
||||||
<if test="maStatus != null">ma_status,</if>
|
<if test="maStatus != null">ma_status,</if>
|
||||||
<if test="leaseScope != null and leaseScope != ''">lease_scope,</if>
|
<if test="leaseScope != null and leaseScope != ''">lease_scope,</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue