装备管理

This commit is contained in:
lizhenhua 2025-06-30 10:53:08 +08:00
parent 5f9086d90f
commit e7214c93da
2 changed files with 12 additions and 1 deletions

View File

@ -160,5 +160,8 @@ public class DevInfoVo extends DevInfo {
@ApiModelProperty(value = "检修预报警天数")
private String maintenanceAlarmDay;
@ApiModelProperty(value = "原值")
private String originaValue;
}

View File

@ -41,11 +41,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="deviceName" column="device_name" />
<result property="groupName" column="group_name" />
<result property="companyName" column="company_name" />
<result property="originaValue" column="origina_value" />
</resultMap>
<sql id="selectDevInfoVo">
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,origina_value,
creator, update_time, person, person_phone, update_by, specification, deposit, is_operator, is_active, update_time, update_by
from ma_dev_info
</sql>
@ -72,6 +73,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
d.person_phone as personPhone,
d.create_time as createTime,
d.update_time as updateTime,
d.origina_value as originaValue,
d.own_co as companyId,
sd.dept_name as companyName,
c.operate_address as operateAddress,
@ -189,6 +191,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
mt4.lease_price as dayLeasePrice,
d.person as person,
d.person_phone as personPhone,
d.origina_value as originaValue,
d.own_co as companyId,
sd.dept_name as companyName,
c.operate_address as operateAddress,
@ -225,6 +228,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
d.device_weight as deviceWeight,
d.device_count as deviceCount,
d.type_id as typeId,
d.origina_value as originaValue,
d.check_date as checkDate,
d.check_cycle as checkCycle,
mt4.type_name as typeName,
@ -278,6 +282,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
insert into ma_dev_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deviceName != null and deviceName != '' ">device_name,</if>
<if test="originaValue != null and originaValue != '' ">origina_value,</if>
<if test="deviceWeight != null and deviceWeight != '' ">device_weight,</if>
<if test="deviceCount != null">device_count,</if>
<if test="code != null and code != '' ">code,</if>
@ -317,6 +322,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deviceName != null and deviceName != ''">#{deviceName},</if>
<if test="originaValue != null and originaValue != ''">#{originaValue},</if>
<if test="deviceWeight != null and deviceWeight != ''">#{deviceWeight},</if>
<if test="deviceCount != null">#{deviceCount},</if>
<if test="code != null and code != ''">#{code},</if>
@ -386,6 +392,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="cityId != null">city_id = #{cityId},</if>
<if test="areaId != null">area_id = #{areaId},</if>
<if test="brand != null">brand = #{brand},</if>
<if test="originaValue != null">origina_value = #{originaValue},</if>
<if test="modelName != null">model_name = #{modelName},</if>
<if test="productionDate != null">production_date = #{productionDate},</if>
<if test="workingHours != null">working_hours = #{workingHours},</if>
@ -614,6 +621,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
insert into ma_dev_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deviceName != null and deviceName != '' ">device_name,</if>
<if test="originaValue != null and originaValue != '' ">origina_value,</if>
<if test="deviceWeight != null and deviceWeight != '' ">device_weight,</if>
<if test="deviceCount != null">device_count,</if>
<if test="code != null and code != '' ">code,</if>