|
@@ -3,6 +3,7 @@ package com.huimv.receive.controller;
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
|
|
import com.huimv.receive.common.utils.PdfUtil;
|
|
|
import com.huimv.receive.common.utils.Result;
|
|
|
import com.huimv.receive.common.utils.ResultCode;
|
|
@@ -63,7 +64,14 @@ public class BillCleanController {
|
|
|
@PostMapping("/getCleanAndDryDetail")
|
|
|
public Result getCleanAndDryDetail(@RequestBody Map<String, String> paramsMap){
|
|
|
String type = paramsMap.get("type");
|
|
|
- if (type.equals("1")){
|
|
|
+ if(StringUtils.isBlank(type)){
|
|
|
+ BillClean billClean = billCleanService.getById(paramsMap.get("id"));
|
|
|
+ if (ObjectUtil.isEmpty(billClean.getImgUrl())){
|
|
|
+ billClean.setImgUrl("");
|
|
|
+ }
|
|
|
+ return new Result(ResultCode.SUCCESS, billClean);
|
|
|
+ }
|
|
|
+ if ("1".equals(type)){
|
|
|
BillClean billClean = billCleanService.getById(paramsMap.get("id"));
|
|
|
if (ObjectUtil.isEmpty(billClean.getImgUrl())){
|
|
|
billClean.setImgUrl("");
|