diff --git a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/domain/DevInfo.java b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/domain/DevInfo.java index d2b5d98..4b75dde 100644 --- a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/domain/DevInfo.java +++ b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/domain/DevInfo.java @@ -91,6 +91,12 @@ public class DevInfo extends BaseEntity { @NotBlank(message = "单位不能为空") private String unitName; + @ApiModelProperty("公司id -- 陕西自己存入") + private String orgId; + + @ApiModelProperty("公司名称--陕西自己存入") + private String orgName; + /** * 类型id */ diff --git a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/service/impl/DevInfoServiceImpl.java b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/service/impl/DevInfoServiceImpl.java index cf54943..adbba27 100644 --- a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/service/impl/DevInfoServiceImpl.java +++ b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/service/impl/DevInfoServiceImpl.java @@ -414,6 +414,7 @@ public class DevInfoServiceImpl implements DevInfoService { Long userId = SecurityUtils.getLoginUser().getUserid(); //保存用户信息 devInfo.setCreator(userId).setOwnId(userId); + // 取消编码自动生成,由陕西自行传入编码 // if (org.apache.commons.lang3.StringUtils.isBlank(code)) { // code = getString(); // } diff --git a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/device/DevInfoMapper.xml b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/device/DevInfoMapper.xml index 8728251..e2c8683 100644 --- a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/device/DevInfoMapper.xml +++ b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/device/DevInfoMapper.xml @@ -16,6 +16,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + @@ -45,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 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, level_type,collect_code, + pic_url, js_month_price, js_day_price, description, gps_code, own_co, create_time, level_type, collect_code, org_id, org_name, creator, update_time, person, person_phone, update_by, specification, deposit, is_operator, is_active, update_time, update_by from ma_dev_info @@ -62,6 +64,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" d.device_count as deviceCount, d.device_unit_type as deviceUnitType, d.type_id as typeId, + d.org_id as orgId, + d.org_name as orgName, mt4.type_name as typeName, mt4.unit_name as unitName, d.ma_status as maStatus, @@ -242,6 +246,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" d.type_id as typeId, d.check_date as checkDate, d.check_cycle as checkCycle, + d.org_id as orgId, + d.org_namee as orgName, mt4.type_name as typeName, mt4.unit_name as unitName, mt4.manage_type as manageType, @@ -330,6 +336,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" `description`, gps_code, own_co, + org_id, + org_name, person, person_phone, level_type, @@ -379,6 +387,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{description}, #{gpsCode}, #{companyId}, + #{orgId}, + #{orgName}, #{person}, #{personPhone}, #{levelType}, @@ -436,6 +446,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" location = #{location}, province_id = #{provinceId}, city_id = #{cityId}, + org_id = #{orgId}, + org_name = #{orgName}, area_id = #{areaId}, brand = #{brand}, model_name = #{modelName},