|
|
@@ -18,6 +18,7 @@ import com.yunfeiyun.agmp.iot.common.domain.IotRunHaoSfdata;
|
|
|
import com.yunfeiyun.agmp.iot.common.domain.IotSfElementfactor;
|
|
|
import com.yunfeiyun.agmp.iot.common.exception.IotBizException;
|
|
|
import com.yunfeiyun.agmp.iot.common.model.cmd.CmdGroupModel;
|
|
|
+import com.yunfeiyun.agmp.iot.common.util.dev.RunHaoSfElementUtil;
|
|
|
import com.yunfeiyun.agmp.iotm.device.common.domin.IotDeviceDataListReqVo;
|
|
|
import com.yunfeiyun.agmp.iotm.device.common.service.IotDeviceBaseService;
|
|
|
import com.yunfeiyun.agmp.iotm.device.common.service.impl.IotDeviceBaseServiceImpl;
|
|
|
@@ -109,6 +110,8 @@ public class IIotSfCommService extends IotDeviceBaseServiceImpl implements IotDe
|
|
|
public IotSfElementfactor makeIotSfElementfactor(IotSfElementfactorAddReqVo reqVo, String date){
|
|
|
String tid = SecurityUtils.getTid();
|
|
|
String userId = SecurityUtils.getUserId();
|
|
|
+ String sfType = reqVo.getSfType();
|
|
|
+ String sfCode = reqVo.getSfCode();
|
|
|
|
|
|
IotSfElementfactor elementfactor = new IotSfElementfactor();
|
|
|
String sfBid = elementfactor.getUUId();
|
|
|
@@ -119,6 +122,11 @@ public class IIotSfCommService extends IotDeviceBaseServiceImpl implements IotDe
|
|
|
elementfactor.setSfCreator(userId);
|
|
|
elementfactor.setSfModifieddate(date);
|
|
|
elementfactor.setSfModifier(userId);
|
|
|
+
|
|
|
+ IotSfElementfactor sfElementfactor = RunHaoSfElementUtil.getElementFactor(sfType, sfCode);
|
|
|
+ if(sfElementfactor != null){
|
|
|
+ elementfactor.setSfName(sfElementfactor.getSfName());
|
|
|
+ }
|
|
|
return elementfactor;
|
|
|
}
|
|
|
|