装备所属公司新增
This commit is contained in:
parent
0787dfbaba
commit
d6c57e633a
|
|
@ -228,7 +228,6 @@ public class DevInfo extends BaseEntity {
|
||||||
private String city;
|
private String city;
|
||||||
|
|
||||||
@ApiModelProperty(value = "公司Id")
|
@ApiModelProperty(value = "公司Id")
|
||||||
@NotBlank(message = "所属公司不能为空")
|
|
||||||
private String companyId;
|
private String companyId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "管理方式(0编号 1计数)")
|
@ApiModelProperty(value = "管理方式(0编号 1计数)")
|
||||||
|
|
|
||||||
|
|
@ -313,6 +313,7 @@ public class DevInfoServiceImpl implements DevInfoService {
|
||||||
code = getString();
|
code = getString();
|
||||||
}
|
}
|
||||||
devInfo.setCode(code);
|
devInfo.setCode(code);
|
||||||
|
devInfo.setCompanyId(SecurityUtils.getLoginUser().getSysUser().getCompanyId().toString());
|
||||||
int saveSuccessNum = devInfoMapper.insertDevInfo(devInfo);
|
int saveSuccessNum = devInfoMapper.insertDevInfo(devInfo);
|
||||||
if (saveSuccessNum == 0) {
|
if (saveSuccessNum == 0) {
|
||||||
return AjaxResult.error("设备信息SQL保存失败,请修改后重试");
|
return AjaxResult.error("设备信息SQL保存失败,请修改后重试");
|
||||||
|
|
|
||||||
|
|
@ -283,7 +283,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="jsDayPrice != null and jsDayPrice != ''">js_day_price,</if>
|
<if test="jsDayPrice != null and jsDayPrice != ''">js_day_price,</if>
|
||||||
<if test="description != null and description != ''">`description`,</if>
|
<if test="description != null and description != ''">`description`,</if>
|
||||||
<if test="gpsCode != null and gpsCode != ''">gps_code,</if>
|
<if test="gpsCode != null and gpsCode != ''">gps_code,</if>
|
||||||
<if test="companyId != null">own_co,</if>
|
<if test="companyId != null and companyId != ''" >own_co,</if>
|
||||||
<if test="person != null and person != ''">person,</if>
|
<if test="person != null and person != ''">person,</if>
|
||||||
<if test="personPhone != null and personPhone != ''">person_phone,</if>
|
<if test="personPhone != null and personPhone != ''">person_phone,</if>
|
||||||
create_time,
|
create_time,
|
||||||
|
|
@ -319,7 +319,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="jsDayPrice != null and jsDayPrice != ''">#{jsDayPrice},</if>
|
<if test="jsDayPrice != null and jsDayPrice != ''">#{jsDayPrice},</if>
|
||||||
<if test="description != null and description != ''">#{description},</if>
|
<if test="description != null and description != ''">#{description},</if>
|
||||||
<if test="gpsCode != null and gpsCode != ''">#{gpsCode},</if>
|
<if test="gpsCode != null and gpsCode != ''">#{gpsCode},</if>
|
||||||
<if test="companyId != null">#{companyId},</if>
|
<if test="companyId != null and companyId != ''">#{companyId},</if>
|
||||||
<if test="person != null and person != ''">#{person},</if>
|
<if test="person != null and person != ''">#{person},</if>
|
||||||
<if test="personPhone != null and personPhone != ''">#{personPhone},</if>
|
<if test="personPhone != null and personPhone != ''">#{personPhone},</if>
|
||||||
now(),
|
now(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue