test:故障码管理新增字段(车辆类型)
parent
d5948f4ebc
commit
c2c446581d
|
@ -83,6 +83,10 @@ public class SysCarFault extends BaseEntity{
|
|||
@Excel(name = "是否警告(0.开启 1.禁止)")
|
||||
private Integer warnStatus;
|
||||
|
||||
/**车辆类型 */
|
||||
@Excel(name = "车辆类型")
|
||||
private Integer carTypeId;
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
|
|
|
@ -58,12 +58,18 @@ public class SysCarFaultServiceImpl
|
|||
if (StringUtils.isNotEmpty(sysCarFault.getFaultBit())){
|
||||
queryWrapper.eq(SysCarFault::getFaultBit, sysCarFault.getFaultBit());
|
||||
}
|
||||
|
||||
if (sysCarFault.getFaultRank()!=null){
|
||||
queryWrapper.eq(SysCarFault::getFaultRank, sysCarFault.getFaultRank());
|
||||
}
|
||||
//故障码类型
|
||||
if (sysCarFault.getTypeId()!=null){
|
||||
queryWrapper.eq(SysCarFault::getTypeId,sysCarFault.getTypeId());
|
||||
}
|
||||
//车辆类型查询
|
||||
if (sysCarFault.getCarTypeId()!=null){
|
||||
queryWrapper.eq(SysCarFault::getCarTypeId,sysCarFault.getTypeId());
|
||||
}
|
||||
return this.list(queryWrapper);
|
||||
}
|
||||
|
||||
|
|
|
@ -23,10 +23,11 @@
|
|||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="carTypeId" column="car_type_id"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysCarFaultVo">
|
||||
select id, fault_code, fault_name, type_id, fault_label, fault_bit, fault_value, fault_rank, fault_desc, fault_min_threshold, fault_max_threshold, status, warn_status, remark, create_by, create_time, update_by, update_time from sys_car_fault
|
||||
select id, fault_code, fault_name, type_id, fault_label, fault_bit, fault_value, fault_rank, fault_desc, fault_min_threshold, fault_max_threshold, status, warn_status, remark, create_by, create_time, update_by, update_time,car_type_id from sys_car_fault
|
||||
</sql>
|
||||
|
||||
<select id="selectSysCarFaultList" parameterType="com.muyu.breakdown.domain.SysCarFault" resultMap="SysCarFaultResult">
|
||||
|
@ -70,6 +71,7 @@
|
|||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="carTypeId !=null">car_type_id</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="faultCode != null and faultCode != ''">#{faultCode},</if>
|
||||
|
@ -89,6 +91,7 @@
|
|||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="carTypeId != null">#{catTypeId}</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
@ -112,6 +115,7 @@
|
|||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="carTypeId !=null">car_type_id=#{catTypeId}</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
|
|
@ -96,7 +96,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
|
|||
/**
|
||||
* 通过用户名查询用户
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @param firm 用户名
|
||||
*
|
||||
* @return 用户对象信息
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue