Quellcode durchsuchen

设备二维码添加自定义商户

李进 vor 1 Jahr
Ursprung
Commit
b1d5c17af5

+ 2 - 2
device-api-service/src/main/java/com/xy/service/DeviceCreateIdsServiceImpl.java

@@ -197,9 +197,9 @@ public class DeviceCreateIdsServiceImpl extends ServiceImpl<DeviceCreateIdsMappe
         return R.ok();
     }
 
-    @PostMapping("updateBatch")
+    @Override
     @ApiOperation("批量修改")
-    public R updateBatch(@RequestBody @Validated DeviceCreateIdsDto.UpdateBatch updateBatch) {
+    public R updateBatch(DeviceCreateIdsDto.UpdateBatch updateBatch) {
         List<Long> deviceIds = updateBatch.getDeviceIds();
         List<DeviceCreateIds> deviceCreateIdss = new ArrayList<>(deviceIds.size());
         deviceIds.forEach(deviceId -> {

+ 9 - 0
device-api/src/main/java/com/xy/service/DeviceCreateIdsService.java

@@ -26,4 +26,13 @@ public interface DeviceCreateIdsService {
      */
     @PostMapping("update")
     R update(@RequestBody @Validated DeviceCreateIdsDto.Update update);
+
+    /**
+     * 批量修改
+     *
+     * @param updateBatch
+     * @return
+     */
+    @PostMapping("updateBatch")
+    R updateBatch(@RequestBody @Validated DeviceCreateIdsDto.UpdateBatch updateBatch);
 }