| @ -0,0 +1,37 @@ | |||
| package com.hxhq.business.controller; | |||
| import java.util.Arrays; | |||
| import java.util.List; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import com.hxhq.business.domain.Jcb; | |||
| import com.hxhq.business.service.IJcbService; | |||
| import com.hxhq.common.core.web.controller.BaseController; | |||
| import com.hxhq.common.core.web.domain.AjaxResult; | |||
| import com.hxhq.common.core.web.page.TableDataInfo; | |||
| /** | |||
| * 检测板Controller | |||
| * | |||
| * @author hxhq | |||
| * @date 2026-02-09 | |||
| */ | |||
| @RestController | |||
| @RequestMapping("/business/jcb") | |||
| public class JcbController extends BaseController | |||
| { | |||
| @Autowired | |||
| private IJcbService jcbService; | |||
| /** | |||
| * 查询检测板列表 | |||
| */ | |||
| @GetMapping("/list") | |||
| public TableDataInfo list(Jcb jcb) | |||
| { | |||
| startPage(); | |||
| List<Jcb> list = jcbService.queryList(jcb); | |||
| return getDataTable(list); | |||
| } | |||
| } | |||
| @ -0,0 +1,71 @@ | |||
| package com.hxhq.business.domain; | |||
| import com.baomidou.mybatisplus.annotation.TableName; | |||
| import com.hxhq.common.core.domain.MpBaseEntity; | |||
| /** | |||
| * 检测板对象 t_jcb | |||
| * | |||
| * @author hxhq | |||
| * @date 2026-02-09 | |||
| */ | |||
| @TableName("t_jcb") | |||
| public class Jcb extends MpBaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** 所属试验 */ | |||
| private Long studyId; | |||
| /** 表单id */ | |||
| private Long studyFillFormId; | |||
| /** 编号 */ | |||
| private String bh; | |||
| /** 创建人 */ | |||
| private String cjr; | |||
| public void setStudyId(Long studyId) | |||
| { | |||
| this.studyId = studyId; | |||
| } | |||
| public Long getStudyId() | |||
| { | |||
| return studyId; | |||
| } | |||
| public void setStudyFillFormId(Long studyFillFormId) | |||
| { | |||
| this.studyFillFormId = studyFillFormId; | |||
| } | |||
| public Long getStudyFillFormId() | |||
| { | |||
| return studyFillFormId; | |||
| } | |||
| public void setBh(String bh) | |||
| { | |||
| this.bh = bh; | |||
| } | |||
| public String getBh() | |||
| { | |||
| return bh; | |||
| } | |||
| public void setCjr(String cjr) | |||
| { | |||
| this.cjr = cjr; | |||
| } | |||
| public String getCjr() | |||
| { | |||
| return cjr; | |||
| } | |||
| } | |||
| @ -0,0 +1,14 @@ | |||
| package com.hxhq.business.mapper; | |||
| import com.hxhq.business.domain.Jcb; | |||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |||
| /** | |||
| * 检测板Mapper接口 | |||
| * | |||
| * @author hxhq | |||
| * @date 2026-02-09 | |||
| */ | |||
| public interface JcbMapper extends BaseMapper<Jcb> | |||
| { | |||
| } | |||
| @ -0,0 +1,22 @@ | |||
| package com.hxhq.business.service; | |||
| import java.util.List; | |||
| import com.hxhq.business.domain.Jcb; | |||
| import com.baomidou.mybatisplus.extension.service.IService; | |||
| /** | |||
| * 检测板Service接口 | |||
| * | |||
| * @author hxhq | |||
| * @date 2026-02-09 | |||
| */ | |||
| public interface IJcbService extends IService<Jcb> | |||
| { | |||
| /** | |||
| * 查询检测板列表 | |||
| * | |||
| * @param jcb 检测板 | |||
| * @return 检测板集合 | |||
| */ | |||
| public List<Jcb> queryList(Jcb jcb); | |||
| } | |||
| @ -0,0 +1,35 @@ | |||
| package com.hxhq.business.service.impl; | |||
| import java.util.List; | |||
| import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | |||
| import com.baomidou.mybatisplus.core.toolkit.Wrappers; | |||
| import com.hxhq.common.core.utils.DateUtils; | |||
| import org.springframework.stereotype.Service; | |||
| import com.hxhq.business.mapper.JcbMapper; | |||
| import com.hxhq.business.domain.Jcb; | |||
| import com.hxhq.business.service.IJcbService; | |||
| import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |||
| /** | |||
| * 检测板Service业务层处理 | |||
| * | |||
| * @author hxhq | |||
| * @date 2026-02-09 | |||
| */ | |||
| @Service | |||
| public class JcbServiceImpl extends ServiceImpl<JcbMapper, Jcb> implements IJcbService | |||
| { | |||
| /** | |||
| * 查询检测板列表 | |||
| * | |||
| * @param jcb 检测板 | |||
| * @return 检测板 | |||
| */ | |||
| @Override | |||
| public List<Jcb> queryList(Jcb jcb) | |||
| { | |||
| QueryWrapper<Jcb> queryWrapper = Wrappers.query(); | |||
| return this.list(queryWrapper); | |||
| } | |||
| } | |||
| @ -0,0 +1,6 @@ | |||
| <?xml version="1.0" encoding="UTF-8" ?> | |||
| <!DOCTYPE mapper | |||
| PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||
| "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||
| <mapper namespace="com.hxhq.business.mapper.JcbMapper"> | |||
| </mapper> | |||