|
|
|
|
@ -3,6 +3,7 @@ package org.springblade.lims.controller; |
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
@ -25,6 +26,7 @@ import org.springframework.web.bind.annotation.*; |
|
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 检验列表 |
|
|
|
|
* @author swj |
|
|
|
|
* @since 2022年6月1日19:49:10 |
|
|
|
|
*/ |
|
|
|
|
@ -100,7 +102,16 @@ public class ExamineController extends BladeController { |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/updateExamine") |
|
|
|
|
public void updateExamine(@RequestBody Examine examine) { |
|
|
|
|
examineService.updateById(examine); |
|
|
|
|
examineService.updateById(examine); |
|
|
|
|
if(examine.getStatus() == -1){ |
|
|
|
|
//要把委托单状态改为待重订
|
|
|
|
|
Examine examineInfo = examineService.getById(examine.getId()); |
|
|
|
|
Long entrustId = examineInfo.getEntrustId(); |
|
|
|
|
LambdaUpdateWrapper<Entrust> entrustWrapper = new LambdaUpdateWrapper<>(); |
|
|
|
|
//entrust_status -0.5 待重订
|
|
|
|
|
entrustWrapper.eq(Entrust::getId,entrustId).set(Entrust::getEntrustStatus, -0.5); |
|
|
|
|
service.update(entrustWrapper); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|