|
@@ -17,31 +17,28 @@
|
|
|
package org.springblade.business.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
-import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
-import javax.validation.Valid;
|
|
|
-
|
|
|
-import org.springblade.business.entity.TrialSampleInfo;
|
|
|
+import org.springblade.business.entity.EntrustInfo;
|
|
|
+import org.springblade.business.service.IEntrustInfoService;
|
|
|
import org.springblade.business.vo.EntrustDataInfoVO;
|
|
|
+import org.springblade.business.vo.EntrustInfoVO;
|
|
|
import org.springblade.business.vo.LoadDataInfoVO;
|
|
|
import org.springblade.business.vo.TrialSampleDataInfoVO;
|
|
|
+import org.springblade.business.wrapper.EntrustInfoWrapper;
|
|
|
+import org.springblade.core.boot.ctrl.BladeController;
|
|
|
import org.springblade.core.mp.support.Condition;
|
|
|
import org.springblade.core.mp.support.Query;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.core.tool.utils.Func;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
-import org.springblade.business.entity.EntrustInfo;
|
|
|
-import org.springblade.business.vo.EntrustInfoVO;
|
|
|
-import org.springblade.business.wrapper.EntrustInfoWrapper;
|
|
|
-import org.springblade.business.service.IEntrustInfoService;
|
|
|
-import org.springblade.core.boot.ctrl.BladeController;
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
import java.util.Date;
|
|
|
|
|
|
/**
|
|
@@ -209,4 +206,13 @@ public class EntrustInfoController extends BladeController {
|
|
|
LoadDataInfoVO pages = entrustInfoService.selectDataInfoById(id);
|
|
|
return R.data(pages);
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 生成委托单 校验该材料是否关联委托单
|
|
|
+ */
|
|
|
+ @GetMapping("/checkSample")
|
|
|
+ @ApiOperationSupport(order = 10)
|
|
|
+ @ApiOperation(value = "校验材料", notes = "传入材料id")
|
|
|
+ public R checkSample(Long sampleId){
|
|
|
+ return entrustInfoService.checkSample(sampleId);
|
|
|
+ }
|
|
|
}
|