Commit d929f9e6 authored by 赵啸非's avatar 赵啸非

添加样表设备列表

parent 3f4348d0
...@@ -2574,14 +2574,10 @@ dict|object|字典对象 ...@@ -2574,14 +2574,10 @@ dict|object|字典对象
:---|:---|:---|:------ :---|:---|:---|:------
page|Integer|否|当前页 page|Integer|否|当前页
size|Integer|否|每页条数,值为-1,查询所有记录 size|Integer|否|每页条数,值为-1,查询所有记录
deviceCode|String|否|设备编码,字段前后添加%%模糊查询
siteId|Long|否|站点ID
**请求样例:** **请求样例:**
``` ```
{ {
"deviceCode":"rzc79g",
"siteId":2780,
"page":1, "page":1,
"size":10 "size":10
} }
...@@ -2603,19 +2599,18 @@ data|object|数据对象 ...@@ -2603,19 +2599,18 @@ data|object|数据对象
  deviceId|Long|设备id   deviceId|Long|设备id
  deviceCode|String|设备编码   deviceCode|String|设备编码
  deviceName|String|设备名称   deviceName|String|设备名称
  productId|Long|产品id   matterId|Long|事项id
  productCode|String|产品编码   matterCode|String|事项编码
  productName|String|产品名称   matterName|String|事项名称
  matterId|Long|事项matter id
  siteId|Long|站点ID   siteId|Long|站点ID
  deptId|Long|部门ID   deptId|Long|部门ID
  deptCode|String|部门编号   deptCode|String|部门编号
  deptName|String|部门名称   deptName|String|部门名称
  materialName|String|材料名   materialName|String|材料名
  materiaFullName|String|材料全名   materiaFullName|String|材料全名
  materialId|Long|材料id
  source|Integer|事项来源(0.政务网,1.自定义)   source|Integer|事项来源(0.政务网,1.自定义)
  isRecommend|Integer|是否推荐(0.未推荐,1.推荐)   isRecommend|Integer|是否推荐(0.未推荐,1.推荐)
  total|Integer|填单次数
  sort|Integer|排序   sort|Integer|排序
  sampleName|String|样表名称   sampleName|String|样表名称
  samplePath|String|样表地址   samplePath|String|样表地址
...@@ -2667,19 +2662,18 @@ data|object|数据对象 ...@@ -2667,19 +2662,18 @@ data|object|数据对象
 deviceId|Long|设备id  deviceId|Long|设备id
 deviceCode|String|设备编码  deviceCode|String|设备编码
 deviceName|String|设备名称  deviceName|String|设备名称
 productId|Long|产品id  matterId|Long|事项id
 productCode|String|产品编码  matterCode|String|事项编码
 productName|String|产品名称  matterName|String|事项名称
 matterId|Long|事项matter id
 siteId|Long|站点ID  siteId|Long|站点ID
 deptId|Long|部门ID  deptId|Long|部门ID
 deptCode|String|部门编号  deptCode|String|部门编号
 deptName|String|部门名称  deptName|String|部门名称
 materialName|String|材料名  materialName|String|材料名
 materiaFullName|String|材料全名  materiaFullName|String|材料全名
 materialId|Long|材料id
 source|Integer|事项来源(0.政务网,1.自定义)  source|Integer|事项来源(0.政务网,1.自定义)
 isRecommend|Integer|是否推荐(0.未推荐,1.推荐)  isRecommend|Integer|是否推荐(0.未推荐,1.推荐)
 total|Integer|填单次数
 sort|Integer|排序  sort|Integer|排序
 sampleName|String|样表名称  sampleName|String|样表名称
 samplePath|String|样表地址  samplePath|String|样表地址
...@@ -2696,29 +2690,28 @@ dict|object|字典对象 ...@@ -2696,29 +2690,28 @@ dict|object|字典对象
{ {
"code": 1, "code": 1,
"data": { "data": {
"id":5825, "id":7287,
"deviceId":6905, "deviceId":4805,
"deviceCode":"cj8jgr", "deviceCode":"ezsu52",
"deviceName":"qdzsth", "deviceName":"gio16r",
"productId":3706, "matterId":8179,
"productCode":"tg3ujg", "matterCode":"wuz4op",
"productName":"n5imno", "matterName":"3j5eg0",
"matterId":1158, "siteId":9985,
"siteId":8335, "deptId":3702,
"deptId":1677, "deptCode":"dvslci",
"deptCode":"66r1h3", "deptName":"urebgs",
"deptName":"5hc964", "materialName":"znzxp8",
"materialName":"cvzy4g", "materiaFullName":"ar03ng",
"materiaFullName":"2igxs2", "materialId":3055,
"source":5604, "source":6317,
"isRecommend":9780, "isRecommend":1887,
"total":4803, "sort":5527,
"sort":1159, "sampleName":"f6e961",
"sampleName":"77132s", "samplePath":"67xnm5",
"samplePath":"xvk0ag", "preViewPath":"r6w3s6",
"preViewPath":"rrotwe",
"createTime":"2023-03-22", "createTime":"2023-03-22",
"createUserId":4039, "createUserId":8413,
"updateTime":"2023-03-22" "updateTime":"2023-03-22"
} }
} }
...@@ -2739,49 +2732,16 @@ dict|object|字典对象 ...@@ -2739,49 +2732,16 @@ dict|object|字典对象
参数名称|类型|必填|描述 参数名称|类型|必填|描述
:---|:---|:---|:------- :---|:---|:---|:-------
deviceId|Long|否|设备id deviceId|Long|否|设备id
deviceCode|String|否|设备编码 matterId|Lon;g|否|事项id
deviceName|String|否|设备名称
productId|Long|否|产品id
productCode|String|否|产品编码
productName|String|否|产品名称
matterId|Long|否|事项matter id
siteId|Long|否|站点ID siteId|Long|否|站点ID
deptId|Long|否|部门ID materialId|Long|否|材料id
deptCode|String|否|部门编号
deptName|String|否|部门名称
materialName|String|是|材料名
materiaFullName|String|是|材料全名
source|Integer|否|事项来源(0.政务网,1.自定义)
isRecommend|Integer|否|是否推荐(0.未推荐,1.推荐)
total|Integer|否|填单次数
sort|Integer|否|排序
sampleName|String|否|样表名称
samplePath|String|否|样表地址
preViewPath|String|否|样表预览地址
**请求样例:** **请求样例:**
``` ```
{ {
"deviceId":9361, "deviceId":9730,
"deviceCode":"1agfuz", "matterId":5750,
"deviceName":"spki1w", "materialId":8061
"productId":6615,
"productCode":"i6vl7d",
"productName":"5t3w5l",
"matterId":6353,
"siteId":7531,
"deptId":6542,
"deptCode":"ztdhof",
"deptName":"fsyyb1",
"materialName":"xgj2mj",
"materiaFullName":"93hwso",
"source":8702,
"isRecommend":461,
"total":6075,
"sort":2402,
"sampleName":"rjg0l9",
"samplePath":"oxh5zs",
"preViewPath":"kgbgzv",
} }
``` ```
...@@ -2798,19 +2758,18 @@ data|object|数据对象 ...@@ -2798,19 +2758,18 @@ data|object|数据对象
  deviceId|Long|设备id   deviceId|Long|设备id
  deviceCode|String|设备编码   deviceCode|String|设备编码
  deviceName|String|设备名称   deviceName|String|设备名称
  productId|Long|产品id   matterId|Long|事项id
  productCode|String|产品编码   matterCode|String|事项编码
  productName|String|产品名称   matterName|String|事项名称
  matterId|Long|事项matter id
  siteId|Long|站点ID   siteId|Long|站点ID
  deptId|Long|部门ID   deptId|Long|部门ID
  deptCode|String|部门编号   deptCode|String|部门编号
  deptName|String|部门名称   deptName|String|部门名称
  materialName|String|材料名   materialName|String|材料名
  materiaFullName|String|材料全名   materiaFullName|String|材料全名
  materialId|Long|材料id
  source|Integer|事项来源(0.政务网,1.自定义)   source|Integer|事项来源(0.政务网,1.自定义)
  isRecommend|Integer|是否推荐(0.未推荐,1.推荐)   isRecommend|Integer|是否推荐(0.未推荐,1.推荐)
  total|Integer|填单次数
  sort|Integer|排序   sort|Integer|排序
  sampleName|String|样表名称   sampleName|String|样表名称
  samplePath|String|样表地址   samplePath|String|样表地址
...@@ -2863,4 +2822,3 @@ msg|String|消息|- ...@@ -2863,4 +2822,3 @@ msg|String|消息|-
"code":1, "code":1,
"msg":"成功" "msg":"成功"
} }
...@@ -294,19 +294,18 @@ CREATE TABLE mortals_xhx_device_matter_datum( ...@@ -294,19 +294,18 @@ CREATE TABLE mortals_xhx_device_matter_datum(
`deviceId` bigint(20) COMMENT '设备id', `deviceId` bigint(20) COMMENT '设备id',
`deviceCode` varchar(255) COMMENT '设备编码', `deviceCode` varchar(255) COMMENT '设备编码',
`deviceName` varchar(255) COMMENT '设备名称', `deviceName` varchar(255) COMMENT '设备名称',
`productId` bigint(20) COMMENT '产品id', `matterId` bigint(20) COMMENT '事项id',
`productCode` varchar(255) COMMENT '产品编码', `matterCode` varchar(255) COMMENT '事项编码',
`productName` varchar(255) COMMENT '产品名称', `matterName` varchar(255) COMMENT '事项名称',
`matterId` bigint(20) COMMENT '事项matter id',
`siteId` bigint(20) COMMENT '站点ID', `siteId` bigint(20) COMMENT '站点ID',
`deptId` bigint(20) COMMENT '部门ID', `deptId` bigint(20) COMMENT '部门ID',
`deptCode` varchar(256) COMMENT '部门编号', `deptCode` varchar(256) COMMENT '部门编号',
`deptName` varchar(256) COMMENT '部门名称', `deptName` varchar(256) COMMENT '部门名称',
`materialName` varchar(1024) NOT NULL COMMENT '材料名', `materialName` varchar(1024) COMMENT '材料名',
`materiaFullName` varchar(1024) NOT NULL COMMENT '材料全名', `materiaFullName` varchar(1024) COMMENT '材料全名',
`materialId` bigint(20) COMMENT '材料id',
`source` tinyint(2) COMMENT '事项来源(0.政务网,1.自定义)', `source` tinyint(2) COMMENT '事项来源(0.政务网,1.自定义)',
`isRecommend` tinyint(2) COMMENT '是否推荐(0.未推荐,1.推荐)', `isRecommend` tinyint(2) COMMENT '是否推荐(0.未推荐,1.推荐)',
`total` int(8) COMMENT '填单次数',
`sort` int(4) COMMENT '排序', `sort` int(4) COMMENT '排序',
`sampleName` varchar(255) COMMENT '样表名称', `sampleName` varchar(255) COMMENT '样表名称',
`samplePath` varchar(255) COMMENT '样表地址', `samplePath` varchar(255) COMMENT '样表地址',
...@@ -315,9 +314,8 @@ CREATE TABLE mortals_xhx_device_matter_datum( ...@@ -315,9 +314,8 @@ CREATE TABLE mortals_xhx_device_matter_datum(
`createUserId` bigint(20) COMMENT '创建用户', `createUserId` bigint(20) COMMENT '创建用户',
`updateTime` datetime COMMENT '修改时间', `updateTime` datetime COMMENT '修改时间',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
,KEY `deviceCode` (`deviceCode`) USING BTREE
,KEY `siteId` (`siteId`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='设备事项申请材料业务'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='设备事项申请材料业务';
...@@ -7,11 +7,11 @@ import com.mortals.framework.annotation.Excel; ...@@ -7,11 +7,11 @@ import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong; import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.device.model.vo.DeviceMatterDatumVo; import com.mortals.xhx.module.device.model.vo.DeviceMatterDatumVo;
/** /**
* 设备事项申请材料业务实体对象 * 设备事项申请材料业务实体对象
* *
* @author zxfei * @author zxfei
* @date 2023-02-25 * @date 2023-03-22
*/ */
public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -29,21 +29,17 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -29,21 +29,17 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
*/ */
private String deviceName; private String deviceName;
/** /**
* 产品id * 事项id
*/
private Long productId;
/**
* 产品编码
*/ */
private String productCode; private Long matterId;
/** /**
* 产品名称 * 事项编码
*/ */
private String productName; private String matterCode;
/** /**
* 事项matter id * 事项名称
*/ */
private Long matterId; private String matterName;
/** /**
* 站点ID * 站点ID
*/ */
...@@ -68,6 +64,10 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -68,6 +64,10 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
* 材料全名 * 材料全名
*/ */
private String materiaFullName; private String materiaFullName;
/**
* 材料id
*/
private Long materialId;
/** /**
* 事项来源(0.政务网,1.自定义) * 事项来源(0.政务网,1.自定义)
*/ */
...@@ -77,10 +77,6 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -77,10 +77,6 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
*/ */
private Integer isRecommend; private Integer isRecommend;
/** /**
* 填单次数
*/
private Integer total;
/**
* 排序 * 排序
*/ */
private Integer sort; private Integer sort;
...@@ -143,60 +139,46 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -143,60 +139,46 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
this.deviceName = deviceName; this.deviceName = deviceName;
} }
/** /**
* 获取 产品id * 获取 事项id
* @return Long * @return Long
*/ */
public Long getProductId(){ public Long getMatterId(){
return productId; return matterId;
} }
/** /**
* 设置 产品id * 设置 事项id
* @param productId * @param matterId
*/ */
public void setProductId(Long productId){ public void setMatterId(Long matterId){
this.productId = productId; this.matterId = matterId;
} }
/** /**
* 获取 产品编码 * 获取 事项编码
* @return String * @return String
*/ */
public String getProductCode(){ public String getMatterCode(){
return productCode; return matterCode;
} }
/** /**
* 设置 产品编码 * 设置 事项编码
* @param productCode * @param matterCode
*/ */
public void setProductCode(String productCode){ public void setMatterCode(String matterCode){
this.productCode = productCode; this.matterCode = matterCode;
} }
/** /**
* 获取 产品名称 * 获取 事项名称
* @return String * @return String
*/ */
public String getProductName(){ public String getMatterName(){
return productName; return matterName;
} }
/** /**
* 设置 产品名称 * 设置 事项名称
* @param productName * @param matterName
*/ */
public void setProductName(String productName){ public void setMatterName(String matterName){
this.productName = productName; this.matterName = matterName;
}
/**
* 获取 事项matter id
* @return Long
*/
public Long getMatterId(){
return matterId;
}
/**
* 设置 事项matter id
* @param matterId
*/
public void setMatterId(Long matterId){
this.matterId = matterId;
} }
/** /**
* 获取 站点ID * 获取 站点ID
...@@ -282,6 +264,20 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -282,6 +264,20 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
public void setMateriaFullName(String materiaFullName){ public void setMateriaFullName(String materiaFullName){
this.materiaFullName = materiaFullName; this.materiaFullName = materiaFullName;
} }
/**
* 获取 材料id
* @return Long
*/
public Long getMaterialId(){
return materialId;
}
/**
* 设置 材料id
* @param materialId
*/
public void setMaterialId(Long materialId){
this.materialId = materialId;
}
/** /**
* 获取 事项来源(0.政务网,1.自定义) * 获取 事项来源(0.政务网,1.自定义)
* @return Integer * @return Integer
...@@ -311,20 +307,6 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -311,20 +307,6 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
this.isRecommend = isRecommend; this.isRecommend = isRecommend;
} }
/** /**
* 获取 填单次数
* @return Integer
*/
public Integer getTotal(){
return total;
}
/**
* 设置 填单次数
* @param total
*/
public void setTotal(Integer total){
this.total = total;
}
/**
* 获取 排序 * 获取 排序
* @return Integer * @return Integer
*/ */
...@@ -405,19 +387,18 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -405,19 +387,18 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
sb.append(",deviceId:").append(getDeviceId()); sb.append(",deviceId:").append(getDeviceId());
sb.append(",deviceCode:").append(getDeviceCode()); sb.append(",deviceCode:").append(getDeviceCode());
sb.append(",deviceName:").append(getDeviceName()); sb.append(",deviceName:").append(getDeviceName());
sb.append(",productId:").append(getProductId());
sb.append(",productCode:").append(getProductCode());
sb.append(",productName:").append(getProductName());
sb.append(",matterId:").append(getMatterId()); sb.append(",matterId:").append(getMatterId());
sb.append(",matterCode:").append(getMatterCode());
sb.append(",matterName:").append(getMatterName());
sb.append(",siteId:").append(getSiteId()); sb.append(",siteId:").append(getSiteId());
sb.append(",deptId:").append(getDeptId()); sb.append(",deptId:").append(getDeptId());
sb.append(",deptCode:").append(getDeptCode()); sb.append(",deptCode:").append(getDeptCode());
sb.append(",deptName:").append(getDeptName()); sb.append(",deptName:").append(getDeptName());
sb.append(",materialName:").append(getMaterialName()); sb.append(",materialName:").append(getMaterialName());
sb.append(",materiaFullName:").append(getMateriaFullName()); sb.append(",materiaFullName:").append(getMateriaFullName());
sb.append(",materialId:").append(getMaterialId());
sb.append(",source:").append(getSource()); sb.append(",source:").append(getSource());
sb.append(",isRecommend:").append(getIsRecommend()); sb.append(",isRecommend:").append(getIsRecommend());
sb.append(",total:").append(getTotal());
sb.append(",sort:").append(getSort()); sb.append(",sort:").append(getSort());
sb.append(",sampleName:").append(getSampleName()); sb.append(",sampleName:").append(getSampleName());
sb.append(",samplePath:").append(getSamplePath()); sb.append(",samplePath:").append(getSamplePath());
...@@ -433,13 +414,11 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -433,13 +414,11 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
this.deviceName = null; this.deviceName = null;
this.productId = null; this.matterId = null;
this.productCode = null;
this.productName = null; this.matterCode = null;
this.matterId = null; this.matterName = null;
this.siteId = null; this.siteId = null;
...@@ -453,12 +432,12 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo { ...@@ -453,12 +432,12 @@ public class DeviceMatterDatumEntity extends DeviceMatterDatumVo {
this.materiaFullName = null; this.materiaFullName = null;
this.materialId = null;
this.source = null; this.source = null;
this.isRecommend = null; this.isRecommend = null;
this.total = null;
this.sort = null; this.sort = null;
this.sampleName = null; this.sampleName = null;
......
package com.mortals.xhx.module.device.service.impl; package com.mortals.xhx.module.device.service.impl;
import com.mortals.xhx.module.device.model.DeviceEntity;
import com.mortals.xhx.module.device.service.DeviceService;
import com.mortals.xhx.module.matter.model.MatterDatumEntity;
import com.mortals.xhx.module.matter.model.MatterEntity;
import com.mortals.xhx.module.matter.service.MatterDatumService;
import com.mortals.xhx.module.matter.service.MatterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl; import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
...@@ -6,6 +13,8 @@ import com.mortals.framework.model.Context; ...@@ -6,6 +13,8 @@ import com.mortals.framework.model.Context;
import com.mortals.xhx.module.device.dao.DeviceMatterDatumDao; import com.mortals.xhx.module.device.dao.DeviceMatterDatumDao;
import com.mortals.xhx.module.device.model.DeviceMatterDatumEntity; import com.mortals.xhx.module.device.model.DeviceMatterDatumEntity;
import com.mortals.xhx.module.device.service.DeviceMatterDatumService; import com.mortals.xhx.module.device.service.DeviceMatterDatumService;
import org.springframework.util.ObjectUtils;
/** /**
* DeviceMatterDatumService * DeviceMatterDatumService
* 设备事项申请材料业务 service实现 * 设备事项申请材料业务 service实现
...@@ -16,4 +25,52 @@ import com.mortals.xhx.module.device.service.DeviceMatterDatumService; ...@@ -16,4 +25,52 @@ import com.mortals.xhx.module.device.service.DeviceMatterDatumService;
@Service("deviceMatterDatumService") @Service("deviceMatterDatumService")
public class DeviceMatterDatumServiceImpl extends AbstractCRUDServiceImpl<DeviceMatterDatumDao, DeviceMatterDatumEntity, Long> implements DeviceMatterDatumService { public class DeviceMatterDatumServiceImpl extends AbstractCRUDServiceImpl<DeviceMatterDatumDao, DeviceMatterDatumEntity, Long> implements DeviceMatterDatumService {
@Autowired
private MatterService matterService;
@Autowired
private MatterDatumService matterDatumService;
@Autowired
private DeviceService deviceService;
@Override
protected void saveBefore(DeviceMatterDatumEntity entity, Context context) throws AppException {
super.saveBefore(entity, context);
//entity.getMatterId()
if(!ObjectUtils.isEmpty(entity.getMatterId())){
MatterEntity matterEntity = matterService.get(entity.getMatterId());
if(!ObjectUtils.isEmpty(matterEntity)){
entity.setMatterCode(matterEntity.getMatterNo());
entity.setMatterName(matterEntity.getMatterName());
entity.setDeptId(matterEntity.getDeptId());
entity.setDeptCode(matterEntity.getDeptCode());
entity.setDeptName(matterEntity.getDeptName());
}
}
if(!ObjectUtils.isEmpty(entity.getMaterialId())){
MatterDatumEntity matterDatumEntity = matterDatumService.get(entity.getMaterialId());
if(!ObjectUtils.isEmpty(matterDatumEntity)){
entity.setMaterialName(matterDatumEntity.getMaterialName());
entity.setIsRecommend(matterDatumEntity.getIsRecommend());
entity.setSampleName(matterDatumEntity.getSampleName());
entity.setSamplePath(matterDatumEntity.getSamplePath());
entity.setPreViewPath(matterDatumEntity.getPreViewPath());
entity.setSource(matterDatumEntity.getSource());
}
}
if(!ObjectUtils.isEmpty(entity.getDeviceId())){
DeviceEntity deviceEntity = deviceService.get(entity.getDeviceId());
if(!ObjectUtils.isEmpty(deviceEntity)){
entity.setDeviceCode(deviceEntity.getDeviceCode());
entity.setDeviceName(deviceEntity.getDeviceName());
}
}
}
@Override
protected void updateBefore(DeviceMatterDatumEntity entity, Context context) throws AppException {
super.updateBefore(entity, context);
}
} }
\ No newline at end of file
package com.mortals.xhx.module.device.service.impl; package com.mortals.xhx.module.device.service.impl;
import com.mortals.xhx.module.matter.service.MatterDatumService;
import com.mortals.xhx.module.matter.service.MatterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl; import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException; import com.mortals.framework.exception.AppException;
...@@ -16,4 +19,16 @@ import com.mortals.xhx.module.device.service.DeviceService; ...@@ -16,4 +19,16 @@ import com.mortals.xhx.module.device.service.DeviceService;
@Service("deviceService") @Service("deviceService")
public class DeviceServiceImpl extends AbstractCRUDServiceImpl<DeviceDao, DeviceEntity, Long> implements DeviceService { public class DeviceServiceImpl extends AbstractCRUDServiceImpl<DeviceDao, DeviceEntity, Long> implements DeviceService {
@Autowired
private MatterService matterService;
@Autowired
private MatterDatumService matterDatumService;
@Override
protected void saveBefore(DeviceEntity entity, Context context) throws AppException {
super.saveBefore(entity, context);
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment