|
@@ -10,6 +10,7 @@ import com.example.opc_common.util.Blank;
|
|
|
import com.example.opc_common.util.Result;
|
|
|
import com.example.opc_da.annotation.WebLog;
|
|
|
import com.example.opc_da.service.DeviceLedgerService;
|
|
|
+import com.example.opc_da.util.UserUtil;
|
|
|
import com.example.opc_da.util.downloadExcel.DownloadExcelUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -17,6 +18,7 @@ import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.validation.Valid;
|
|
|
import javax.validation.constraints.Min;
|
|
@@ -36,6 +38,9 @@ public class DeviceLedgerController {
|
|
|
@Autowired
|
|
|
private DeviceLedgerService deviceLedgerService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private UserUtil userUtil;
|
|
|
+
|
|
|
/**
|
|
|
* 新增设备目录
|
|
|
*
|
|
@@ -317,7 +322,7 @@ public class DeviceLedgerController {
|
|
|
if (Blank.isEmpty(deviceLedgerId, itemIdList)) {
|
|
|
return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "参数错误");
|
|
|
}
|
|
|
- return deviceLedgerService.addLedgerItemList(deviceLedgerId, itemIdList);
|
|
|
+ return deviceLedgerService.addLedgerItemList(deviceLedgerId, itemIdList, userUtil.getCurrentUserId());
|
|
|
}
|
|
|
|
|
|
/**
|