检验项目模块

This commit is contained in:
jiangs 2025-10-27 12:51:55 +08:00
parent df591dc9a9
commit bf1a3f8bb3
3 changed files with 86 additions and 82 deletions

View File

@ -14,6 +14,7 @@ import com.czlis.common.core.domain.entity.lis.XmInfoVs;
import com.czlis.liswork.service.ReportItemService; import com.czlis.liswork.service.ReportItemService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -25,6 +26,7 @@ import java.util.List;
@Api(tags = "检验项目维护") @Api(tags = "检验项目维护")
@RestController @RestController
@RequestMapping("/xminfo") @RequestMapping("/xminfo")
@Slf4j
public class ReportItemController extends BaseController { public class ReportItemController extends BaseController {
@Autowired @Autowired
@ -33,6 +35,7 @@ public class ReportItemController extends BaseController {
@ApiOperation("查询检验项目列表") @ApiOperation("查询检验项目列表")
@GetMapping("/query") @GetMapping("/query")
public TableDataInfo query(XmInfoNew xmInfoNew) { public TableDataInfo query(XmInfoNew xmInfoNew) {
log.info("查询列表:"+xmInfoNew);
startPage(); startPage();
List<XmInfoNew> xmInfoNewList = reportItemService.query(xmInfoNew); List<XmInfoNew> xmInfoNewList = reportItemService.query(xmInfoNew);
return getDataTable(xmInfoNewList); return getDataTable(xmInfoNewList);

View File

@ -217,80 +217,80 @@ public class LisWorkServiceImpl implements LisWorkService {
labInputcol.setZdts(""); labInputcol.setZdts("");
labInputcol.setMrz("45"); labInputcol.setMrz("45");
ResultConfig.add(0,labInputcol); ResultConfig.add(0,labInputcol);
labInputcol=new LabInputcol(); LabInputcol labInputcol1=new LabInputcol();
labInputcol.setXh(1); labInputcol1.setXh(1);
labInputcol.setYq(yq); labInputcol1.setYq(yq);
labInputcol.setZdmc("redo_flag"); labInputcol1.setZdmc("redo_flag");
labInputcol.setKj("1"); labInputcol1.setKj("1");
labInputcol.setKybj("0"); labInputcol1.setKybj("0");
labInputcol.setZdts("复"); labInputcol1.setZdts("复");
labInputcol.setMrz("45"); labInputcol1.setMrz("45");
ResultConfig.add(1,labInputcol); ResultConfig.add(1,labInputcol1);
labInputcol=new LabInputcol(); LabInputcol labInputcol2 = new LabInputcol();
labInputcol.setXh(2); labInputcol2.setXh(2);
labInputcol.setYq(yq); labInputcol2.setYq(yq);
labInputcol.setZdmc("xmdh"); labInputcol2.setZdmc("xmdh");
labInputcol.setKj("1"); labInputcol2.setKj("1");
labInputcol.setKybj("0"); labInputcol2.setKybj("0");
labInputcol.setZdts("项目"); labInputcol2.setZdts("项目");
labInputcol.setDict("xmdh"); labInputcol2.setDict("xmdh");
labInputcol.setMrz("90"); labInputcol2.setMrz("90");
ResultConfig.add(2,labInputcol); ResultConfig.add(2,labInputcol2);
labInputcol=new LabInputcol(); LabInputcol labInputcol3 =new LabInputcol();
labInputcol.setXh(3); labInputcol3.setXh(3);
labInputcol.setYq(yq); labInputcol3.setYq(yq);
labInputcol.setZdmc("xmmc"); labInputcol3.setZdmc("xmmc");
labInputcol.setKj("1"); labInputcol3.setKj("1");
labInputcol.setKybj("0"); labInputcol3.setKybj("0");
labInputcol.setZdts("名称"); labInputcol3.setZdts("名称");
labInputcol.setMrz("120"); labInputcol3.setMrz("120");
ResultConfig.add(3,labInputcol); ResultConfig.add(3,labInputcol3);
labInputcol=new LabInputcol(); LabInputcol labInputcol4 =new LabInputcol();
labInputcol.setXh(4); labInputcol4.setXh(4);
labInputcol.setYq(yq); labInputcol4.setYq(yq);
labInputcol.setZdmc("csjg"); labInputcol4.setZdmc("csjg");
labInputcol.setKj("1"); labInputcol4.setKj("1");
labInputcol.setKybj("1"); labInputcol4.setKybj("1");
labInputcol.setZdts(result_label); labInputcol4.setZdts(result_label);
labInputcol.setDict("xmval"); labInputcol4.setDict("xmval");
labInputcol.setMrz("100"); labInputcol4.setMrz("100");
ResultConfig.add(4,labInputcol); ResultConfig.add(4,labInputcol4);
labInputcol=new LabInputcol(); LabInputcol labInputcol5 =new LabInputcol();
labInputcol.setXh(5); labInputcol5.setXh(5);
labInputcol.setYq(yq); labInputcol5.setYq(yq);
labInputcol.setZdmc("cp_compa"); labInputcol5.setZdmc("cp_compa");
labInputcol.setKj("1"); labInputcol5.setKj("1");
labInputcol.setKybj("0"); labInputcol5.setKybj("0");
labInputcol.setZdts("上次结果"); labInputcol5.setZdts("上次结果");
labInputcol.setMrz("100"); labInputcol5.setMrz("100");
ResultConfig.add(5,labInputcol); ResultConfig.add(5,labInputcol5);
labInputcol=new LabInputcol(); LabInputcol labInputcol6 =new LabInputcol();
labInputcol.setXh(6); labInputcol.setXh(6);
labInputcol.setYq(yq); labInputcol6.setYq(yq);
labInputcol.setZdmc("od"); labInputcol6.setZdmc("od");
labInputcol.setKj(showodflag); labInputcol6.setKj(showodflag);
labInputcol.setKybj("1"); labInputcol6.setKybj("1");
labInputcol.setZdts(od_label); labInputcol6.setZdts(od_label);
labInputcol.setMrz("100"); labInputcol6.setMrz("100");
ResultConfig.add(6,labInputcol); ResultConfig.add(6,labInputcol6);
labInputcol=new LabInputcol(); LabInputcol labInputcol7 =new LabInputcol();
labInputcol.setXh(7); labInputcol7.setXh(7);
labInputcol.setYq(yq); labInputcol7.setYq(yq);
labInputcol.setZdmc("cutoff"); labInputcol7.setZdmc("cutoff");
labInputcol.setKj(showcutoffflag); labInputcol7.setKj(showcutoffflag);
labInputcol.setKybj("1"); labInputcol7.setKybj("1");
labInputcol.setZdts(cutoff_label); labInputcol7.setZdts(cutoff_label);
labInputcol.setMrz("100"); labInputcol7.setMrz("100");
ResultConfig.add(7,labInputcol); ResultConfig.add(7,labInputcol7);
labInputcol=new LabInputcol(); LabInputcol labInputcol8 =new LabInputcol();
labInputcol.setXh(8); labInputcol8.setXh(8);
labInputcol.setYq(yq); labInputcol8.setYq(yq);
labInputcol.setZdmc("refs"); labInputcol8.setZdmc("refs");
labInputcol.setKj(showrefsflag); labInputcol8.setKj(showrefsflag);
labInputcol.setKybj("0"); labInputcol8.setKybj("0");
labInputcol.setZdts("参考值"); labInputcol8.setZdts("参考值");
labInputcol.setMrz("120"); labInputcol8.setMrz("120");
ResultConfig.add(8,labInputcol); ResultConfig.add(8,labInputcol8);
// labInputcol=new LabInputcol(); // labInputcol=new LabInputcol();
// labInputcol.setXh(9); // labInputcol.setXh(9);
// labInputcol.setYq(yq); // labInputcol.setYq(yq);
@ -300,15 +300,15 @@ public class LisWorkServiceImpl implements LisWorkService {
// labInputcol.setZdts("单位"); // labInputcol.setZdts("单位");
// labInputcol.setMrz("80"); // labInputcol.setMrz("80");
// ResultConfig.add(9,labInputcol); // ResultConfig.add(9,labInputcol);
labInputcol=new LabInputcol(); LabInputcol labInputcol9 =new LabInputcol();
labInputcol.setXh(9); labInputcol9.setXh(9);
labInputcol.setYq(yq); labInputcol9.setYq(yq);
labInputcol.setZdmc("bz1"); labInputcol9.setZdmc("bz1");
labInputcol.setKj("1"); labInputcol9.setKj("1");
labInputcol.setKybj("0"); labInputcol9.setKybj("0");
labInputcol.setZdts("子模块"); labInputcol9.setZdts("子模块");
labInputcol.setMrz("80"); labInputcol9.setMrz("80");
ResultConfig.add(9,labInputcol); ResultConfig.add(9,labInputcol9);
return ResultConfig; return ResultConfig;
} }
@Override @Override

View File

@ -10,6 +10,7 @@
<if test="yq != null and yq != ''"> and yq = #{yq}</if> <if test="yq != null and yq != ''"> and yq = #{yq}</if>
<if test="xmdh != null and xmdh != ''"> and yq = #{xmdh}</if> <if test="xmdh != null and xmdh != ''"> and yq = #{xmdh}</if>
<if test="isWsw != null and isWsw !=''"><![CDATA[and yqdl <> '细菌仪']]></if> <if test="isWsw != null and isWsw !=''"><![CDATA[and yqdl <> '细菌仪']]></if>
<if test="uflag != null and uflag !=''">and uflag = #{uflag}</if>
</where> </where>
</select> </select>