diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/JcbController.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/JcbController.java new file mode 100644 index 0000000..42bb6a4 --- /dev/null +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/JcbController.java @@ -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 list = jcbService.queryList(jcb); + return getDataTable(list); + } +} diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/Jcb.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/Jcb.java new file mode 100644 index 0000000..70c6943 --- /dev/null +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/Jcb.java @@ -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; + } + +} diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/JcbMapper.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/JcbMapper.java new file mode 100644 index 0000000..c1d01ec --- /dev/null +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/JcbMapper.java @@ -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 +{ + +} diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IJcbService.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IJcbService.java new file mode 100644 index 0000000..f7ec6a5 --- /dev/null +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IJcbService.java @@ -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 +{ + /** + * 查询检测板列表 + * + * @param jcb 检测板 + * @return 检测板集合 + */ + public List queryList(Jcb jcb); +} diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/JcbServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/JcbServiceImpl.java new file mode 100644 index 0000000..2ed0b7c --- /dev/null +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/JcbServiceImpl.java @@ -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 implements IJcbService +{ + /** + * 查询检测板列表 + * + * @param jcb 检测板 + * @return 检测板 + */ + @Override + public List queryList(Jcb jcb) + { + QueryWrapper queryWrapper = Wrappers.query(); + return this.list(queryWrapper); + } + +} diff --git a/hxhq-modules/hxhq-system/src/main/resources/mapper/business/JcbMapper.xml b/hxhq-modules/hxhq-system/src/main/resources/mapper/business/JcbMapper.xml new file mode 100644 index 0000000..9cb6e24 --- /dev/null +++ b/hxhq-modules/hxhq-system/src/main/resources/mapper/business/JcbMapper.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file