|
@@ -6,6 +6,7 @@ import java.util.List;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.fdkankan.sale.entity.PriceList;
|
|
|
import com.fdkankan.sale.entity.RepairLog;
|
|
|
+import com.fdkankan.sale.entity.SysUser;
|
|
|
import com.fdkankan.sale.service.IRepairLogService;
|
|
|
import com.fdkankan.sale.util.StatusUtil;
|
|
|
import com.fdkankan.sale.vo.response.PriceListExcelVo;
|
|
@@ -51,8 +52,13 @@ public class RepairInfoController extends BaseController{
|
|
|
if(StringUtils.isBlank(repairId)){
|
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
}
|
|
|
+ Long sysUserId = null;
|
|
|
+ SysUser user = getUser();
|
|
|
+ if(user != null){
|
|
|
+ sysUserId = user.getRoleId().equals(1L) ? null:user.getId();
|
|
|
+ }
|
|
|
|
|
|
- return ResultData.ok(repairInfoService.getProcessByRepairId(repairId));
|
|
|
+ return ResultData.ok(repairInfoService.getProcessByRepairId(repairId,sysUserId));
|
|
|
}
|
|
|
|
|
|
@PostMapping("/list")
|