1.调整代码格式

master
x_z 3 years ago
parent 987f609662
commit 5185625770

@ -141,7 +141,7 @@ public class DeviceController {
}
@Deprecated
@ApiOperation(value = "",hidden = true)
@ApiOperation(value = "", hidden = true)
@GetMapping("warehouse/device/unionSearch")
public BaseResponse search(@Valid DeviceSearchRequest deviceSearchRequest, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
@ -157,7 +157,7 @@ public class DeviceController {
}
@Deprecated
@ApiOperation(value = "",hidden = true)
@ApiOperation(value = "", hidden = true)
@GetMapping("warehouse/device/combineSearch")
public BaseResponse combineSearch(@Valid DeviceSearchRequest deviceSearchRequest, BindingResult bindingResult) {
@ -183,7 +183,7 @@ public class DeviceController {
}
@Deprecated
@ApiOperation(value = "",hidden = true)
@ApiOperation(value = "", hidden = true)
@PostMapping("warehouse/device/loadsingle")
public BaseResponse downLoadDiii(@RequestBody DeviceDiRequest deviceRequest) {
DownloadDeviceHelper downloadDeviceHelper = new DownloadDeviceHelper(companyService, udiCompanyService);
@ -206,7 +206,7 @@ public class DeviceController {
}
@Deprecated
@ApiOperation(value = "",hidden = true)
@ApiOperation(value = "", hidden = true)
@PostMapping("warehouse/device/downLoadHisory")
public BaseResponse downLoadHisory(@RequestBody DeviceDiRequest deviceRequest) {
DownloadDeviceHelper downloadDeviceHelper = new DownloadDeviceHelper(companyService, udiCompanyService);
@ -234,7 +234,7 @@ public class DeviceController {
}
@Deprecated
@ApiOperation(value = "",hidden = true)
@ApiOperation(value = "", hidden = true)
@PostMapping("warehouse/device/loadudid")
public BaseResponse downLoadAll(DownloadDeviceRequest downloadDeviceRequest, BindingResult bindingResult) {
DownloadDeviceHelper downloadDeviceHelper = new DownloadDeviceHelper(companyService, udiCompanyService);
@ -286,7 +286,7 @@ public class DeviceController {
}
@Deprecated
@ApiOperation(value = "",hidden = true)
@ApiOperation(value = "", hidden = true)
@GetMapping("warehouse/device/stop")
public BaseResponse stopDown() {
Devicedownload devicedownload = devicedownloadMapper.selectByPrimaryKey("udid");
@ -296,7 +296,7 @@ public class DeviceController {
}
@Deprecated
@ApiOperation(value = "",hidden = true)
@ApiOperation(value = "", hidden = true)
@GetMapping("warehouse/device/progress")
public BaseResponse getProgress() {
Devicedownload devicedownload = devicedownloadMapper.selectByPrimaryKey("udid");

@ -22,7 +22,7 @@ public class UdplatManufactureController {
@Autowired
private UdplatManufactureService udplatManufactureService;
@ApiOperation(value = "查询生产企业信息",response = UdplatManufacture.class)
@ApiOperation(value = "查询生产企业信息", response = UdplatManufacture.class)
@AuthRuleAnnotation("udplat/manufacture/list")
@PostMapping("/list")
public BaseResponse getList(@RequestBody BaseParam param) {

@ -8,12 +8,13 @@ import java.util.List;
import java.util.Set;
/**
* Long List
* Long List
*/
public class LongList2StringConverter {
/**
* Long List
*
* @param longList
* @param regex
* @return
@ -24,7 +25,7 @@ public class LongList2StringConverter {
return null;
}
Set<String> stringSet = new HashSet<>();
for (Long value: longList){
for (Long value : longList) {
stringSet.add(value.toString());
}
if (stringSet.isEmpty()) {

@ -11,9 +11,8 @@ import java.util.List;
public class String2LongListConverter {
/**
*
* @param string
* @param regex
* @param regex
* @return
*/
public static List<Long> convert(String string, String regex) {
@ -31,7 +30,7 @@ public class String2LongListConverter {
longList.add(Long.valueOf(str));
}
return longList;
}catch (Exception e) {
} catch (Exception e) {
return Collections.emptyList();
}
}

@ -12,9 +12,8 @@ import java.util.List;
public class String2StringListConverter {
/**
*
* @param string
* @param regex
* @param regex
* @return
*/
public static List<String> convert(String string, String regex) {
@ -27,7 +26,7 @@ public class String2StringListConverter {
return Collections.emptyList();
}
return new ArrayList<>(Arrays.asList(strings));
}catch (Exception e) {
} catch (Exception e) {
return Collections.emptyList();
}
}

@ -14,6 +14,7 @@ public class ResultVOUtils {
/**
*
*
* @param data data
* @return {@link BaseResponse}
*/
@ -27,6 +28,7 @@ public class ResultVOUtils {
/**
*
*
* @return {@link BaseResponse}
*/
public static BaseResponse success() {
@ -36,7 +38,8 @@ public class ResultVOUtils {
/**
*
* @param code
*
* @param code
* @param message
* @return {@link BaseResponse}
*/
@ -51,6 +54,7 @@ public class ResultVOUtils {
/**
*
*
* @param resultEnum
* @return {@link BaseResponse}
*/
@ -60,8 +64,9 @@ public class ResultVOUtils {
/**
*
*
* @param resultEnum
* @param message
* @param message
* @return {@link BaseResponse}
*/
public static BaseResponse error(ResultEnum resultEnum, String message) {

Loading…
Cancel
Save