自动化学成分检测及低倍检测
parent
2bff90935a
commit
9cd79fd8fb
@ -0,0 +1,79 @@
|
||||
package com.xisc.pm.api.controller.v1;
|
||||
|
||||
import io.choerodon.core.domain.Page;
|
||||
import io.choerodon.core.iam.ResourceLevel;
|
||||
import io.choerodon.mybatis.pagehelper.annotation.SortDefault;
|
||||
import io.choerodon.mybatis.pagehelper.domain.PageRequest;
|
||||
import io.choerodon.mybatis.pagehelper.domain.Sort;
|
||||
import io.choerodon.swagger.annotation.Permission;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.hzero.core.base.BaseController;
|
||||
import org.hzero.core.util.Results;
|
||||
import org.hzero.mybatis.helper.SecurityTokenHelper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.xisc.pm.app.service.PmSubCheckChmService;
|
||||
import com.xisc.pm.domain.entity.PmSubCheckChm;
|
||||
import com.xisc.pm.domain.repository.PmSubCheckChmRepository;
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 化学成分检测结果表(PmSubCheckChm)表控制层
|
||||
*
|
||||
* @author BKGY
|
||||
* @since 2025-03-26 16:22:54
|
||||
*/
|
||||
|
||||
@RestController("pmSubCheckChmController.v1")
|
||||
@RequestMapping("/v1/{organizationId}/pm-sub-check-chms")
|
||||
public class PmSubCheckChmController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private PmSubCheckChmRepository pmSubCheckChmRepository;
|
||||
|
||||
@Autowired
|
||||
private PmSubCheckChmService pmSubCheckChmService;
|
||||
|
||||
@ApiOperation(value = "化学成分检测结果表列表")
|
||||
@Permission(level = ResourceLevel.ORGANIZATION)
|
||||
@GetMapping
|
||||
public ResponseEntity<Page<PmSubCheckChm>> list(PmSubCheckChm pmSubCheckChm, @PathVariable Long organizationId,
|
||||
@ApiIgnore @SortDefault(value = PmSubCheckChm.FIELD_ID,
|
||||
direction = Sort.Direction.DESC) PageRequest pageRequest) {
|
||||
Page<PmSubCheckChm> list = pmSubCheckChmService.selectList(pageRequest, pmSubCheckChm);
|
||||
return Results.success(list);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "化学成分检测结果表明细")
|
||||
@Permission(level = ResourceLevel.ORGANIZATION)
|
||||
@GetMapping("/{id}")
|
||||
public ResponseEntity<PmSubCheckChm> detail(@PathVariable Long id) {
|
||||
PmSubCheckChm pmSubCheckChm = pmSubCheckChmRepository.selectByPrimary(id);
|
||||
return Results.success(pmSubCheckChm);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "创建或更新化学成分检测结果表")
|
||||
@Permission(level = ResourceLevel.ORGANIZATION)
|
||||
@PostMapping
|
||||
public ResponseEntity<List<PmSubCheckChm>> save(@PathVariable Long organizationId, @RequestBody List<PmSubCheckChm> pmSubCheckChms) {
|
||||
validObject(pmSubCheckChms);
|
||||
SecurityTokenHelper.validTokenIgnoreInsert(pmSubCheckChms);
|
||||
pmSubCheckChms.forEach(item -> item.setTenantId(organizationId));
|
||||
pmSubCheckChmService.saveData(pmSubCheckChms);
|
||||
return Results.success(pmSubCheckChms);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "删除化学成分检测结果表")
|
||||
@Permission(level = ResourceLevel.ORGANIZATION)
|
||||
@DeleteMapping
|
||||
public ResponseEntity<Void> remove(@RequestBody List<PmSubCheckChm> pmSubCheckChms) {
|
||||
SecurityTokenHelper.validToken(pmSubCheckChms);
|
||||
pmSubCheckChmRepository.batchDeleteByPrimaryKey(pmSubCheckChms);
|
||||
return Results.success();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,79 @@
|
||||
package com.xisc.pm.api.controller.v1;
|
||||
|
||||
import io.choerodon.core.domain.Page;
|
||||
import io.choerodon.core.iam.ResourceLevel;
|
||||
import io.choerodon.mybatis.pagehelper.annotation.SortDefault;
|
||||
import io.choerodon.mybatis.pagehelper.domain.PageRequest;
|
||||
import io.choerodon.mybatis.pagehelper.domain.Sort;
|
||||
import io.choerodon.swagger.annotation.Permission;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.hzero.core.base.BaseController;
|
||||
import org.hzero.core.util.Results;
|
||||
import org.hzero.mybatis.helper.SecurityTokenHelper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.xisc.pm.app.service.PmSubCheckLowService;
|
||||
import com.xisc.pm.domain.entity.PmSubCheckLow;
|
||||
import com.xisc.pm.domain.repository.PmSubCheckLowRepository;
|
||||
import springfox.documentation.annotations.ApiIgnore;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 低倍检测结果表(PmSubCheckLow)表控制层
|
||||
*
|
||||
* @author BKGY
|
||||
* @since 2025-03-26 16:27:39
|
||||
*/
|
||||
|
||||
@RestController("pmSubCheckLowController.v1")
|
||||
@RequestMapping("/v1/{organizationId}/pm-sub-check-lows")
|
||||
public class PmSubCheckLowController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private PmSubCheckLowRepository pmSubCheckLowRepository;
|
||||
|
||||
@Autowired
|
||||
private PmSubCheckLowService pmSubCheckLowService;
|
||||
|
||||
@ApiOperation(value = "低倍检测结果表列表")
|
||||
@Permission(level = ResourceLevel.ORGANIZATION)
|
||||
@GetMapping
|
||||
public ResponseEntity<Page<PmSubCheckLow>> list(PmSubCheckLow pmSubCheckLow, @PathVariable Long organizationId,
|
||||
@ApiIgnore @SortDefault(value = PmSubCheckLow.FIELD_ID,
|
||||
direction = Sort.Direction.DESC) PageRequest pageRequest) {
|
||||
Page<PmSubCheckLow> list = pmSubCheckLowService.selectList(pageRequest, pmSubCheckLow);
|
||||
return Results.success(list);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "低倍检测结果表明细")
|
||||
@Permission(level = ResourceLevel.ORGANIZATION)
|
||||
@GetMapping("/{id}")
|
||||
public ResponseEntity<PmSubCheckLow> detail(@PathVariable Long id) {
|
||||
PmSubCheckLow pmSubCheckLow = pmSubCheckLowRepository.selectByPrimary(id);
|
||||
return Results.success(pmSubCheckLow);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "创建或更新低倍检测结果表")
|
||||
@Permission(level = ResourceLevel.ORGANIZATION)
|
||||
@PostMapping
|
||||
public ResponseEntity<List<PmSubCheckLow>> save(@PathVariable Long organizationId, @RequestBody List<PmSubCheckLow> pmSubCheckLows) {
|
||||
validObject(pmSubCheckLows);
|
||||
SecurityTokenHelper.validTokenIgnoreInsert(pmSubCheckLows);
|
||||
pmSubCheckLows.forEach(item -> item.setTenantId(organizationId));
|
||||
pmSubCheckLowService.saveData(pmSubCheckLows);
|
||||
return Results.success(pmSubCheckLows);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "删除低倍检测结果表")
|
||||
@Permission(level = ResourceLevel.ORGANIZATION)
|
||||
@DeleteMapping
|
||||
public ResponseEntity<Void> remove(@RequestBody List<PmSubCheckLow> pmSubCheckLows) {
|
||||
SecurityTokenHelper.validToken(pmSubCheckLows);
|
||||
pmSubCheckLowRepository.batchDeleteByPrimaryKey(pmSubCheckLows);
|
||||
return Results.success();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,34 @@
|
||||
package com.xisc.pm.app.service;
|
||||
|
||||
import io.choerodon.core.domain.Page;
|
||||
import io.choerodon.mybatis.pagehelper.domain.PageRequest;
|
||||
import com.xisc.pm.domain.entity.PmSubCheckChm;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 化学成分检测结果表(PmSubCheckChm)应用服务
|
||||
*
|
||||
* @author BKGY
|
||||
* @since 2025-03-26 16:22:52
|
||||
*/
|
||||
public interface PmSubCheckChmService {
|
||||
|
||||
/**
|
||||
* 查询数据
|
||||
*
|
||||
* @param pageRequest 分页参数
|
||||
* @param pmSubCheckChms 查询条件
|
||||
* @return 返回值
|
||||
*/
|
||||
Page<PmSubCheckChm> selectList(PageRequest pageRequest, PmSubCheckChm pmSubCheckChms);
|
||||
|
||||
/**
|
||||
* 保存数据
|
||||
*
|
||||
* @param pmSubCheckChms 数据
|
||||
*/
|
||||
void saveData(List<PmSubCheckChm> pmSubCheckChms);
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,34 @@
|
||||
package com.xisc.pm.app.service;
|
||||
|
||||
import io.choerodon.core.domain.Page;
|
||||
import io.choerodon.mybatis.pagehelper.domain.PageRequest;
|
||||
import com.xisc.pm.domain.entity.PmSubCheckLow;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 低倍检测结果表(PmSubCheckLow)应用服务
|
||||
*
|
||||
* @author BKGY
|
||||
* @since 2025-03-26 16:27:38
|
||||
*/
|
||||
public interface PmSubCheckLowService {
|
||||
|
||||
/**
|
||||
* 查询数据
|
||||
*
|
||||
* @param pageRequest 分页参数
|
||||
* @param pmSubCheckLows 查询条件
|
||||
* @return 返回值
|
||||
*/
|
||||
Page<PmSubCheckLow> selectList(PageRequest pageRequest, PmSubCheckLow pmSubCheckLows);
|
||||
|
||||
/**
|
||||
* 保存数据
|
||||
*
|
||||
* @param pmSubCheckLows 数据
|
||||
*/
|
||||
void saveData(List<PmSubCheckLow> pmSubCheckLows);
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,39 @@
|
||||
package com.xisc.pm.app.service.impl;
|
||||
|
||||
import io.choerodon.core.domain.Page;
|
||||
import io.choerodon.mybatis.pagehelper.PageHelper;
|
||||
import io.choerodon.mybatis.pagehelper.domain.PageRequest;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.xisc.pm.app.service.PmSubCheckChmService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xisc.pm.domain.entity.PmSubCheckChm;
|
||||
import com.xisc.pm.domain.repository.PmSubCheckChmRepository;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 化学成分检测结果表(PmSubCheckChm)应用服务
|
||||
*
|
||||
* @author BKGY
|
||||
* @since 2025-03-26 16:22:53
|
||||
*/
|
||||
@Service
|
||||
public class PmSubCheckChmServiceImpl implements PmSubCheckChmService {
|
||||
@Autowired
|
||||
private PmSubCheckChmRepository pmSubCheckChmRepository;
|
||||
|
||||
@Override
|
||||
public Page<PmSubCheckChm> selectList(PageRequest pageRequest, PmSubCheckChm pmSubCheckChm) {
|
||||
return PageHelper.doPageAndSort(pageRequest, () -> pmSubCheckChmRepository.selectList(pmSubCheckChm));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void saveData(List<PmSubCheckChm> pmSubCheckChms) {
|
||||
List<PmSubCheckChm> insertList = pmSubCheckChms.stream().filter(line -> line.getId() == null).collect(Collectors.toList());
|
||||
List<PmSubCheckChm> updateList = pmSubCheckChms.stream().filter(line -> line.getId() != null).collect(Collectors.toList());
|
||||
pmSubCheckChmRepository.batchInsertSelective(insertList);
|
||||
pmSubCheckChmRepository.batchUpdateByPrimaryKeySelective(updateList);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,39 @@
|
||||
package com.xisc.pm.app.service.impl;
|
||||
|
||||
import io.choerodon.core.domain.Page;
|
||||
import io.choerodon.mybatis.pagehelper.PageHelper;
|
||||
import io.choerodon.mybatis.pagehelper.domain.PageRequest;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import com.xisc.pm.app.service.PmSubCheckLowService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xisc.pm.domain.entity.PmSubCheckLow;
|
||||
import com.xisc.pm.domain.repository.PmSubCheckLowRepository;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 低倍检测结果表(PmSubCheckLow)应用服务
|
||||
*
|
||||
* @author BKGY
|
||||
* @since 2025-03-26 16:27:38
|
||||
*/
|
||||
@Service
|
||||
public class PmSubCheckLowServiceImpl implements PmSubCheckLowService {
|
||||
@Autowired
|
||||
private PmSubCheckLowRepository pmSubCheckLowRepository;
|
||||
|
||||
@Override
|
||||
public Page<PmSubCheckLow> selectList(PageRequest pageRequest, PmSubCheckLow pmSubCheckLow) {
|
||||
return PageHelper.doPageAndSort(pageRequest, () -> pmSubCheckLowRepository.selectList(pmSubCheckLow));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void saveData(List<PmSubCheckLow> pmSubCheckLows) {
|
||||
List<PmSubCheckLow> insertList = pmSubCheckLows.stream().filter(line -> line.getId() == null).collect(Collectors.toList());
|
||||
List<PmSubCheckLow> updateList = pmSubCheckLows.stream().filter(line -> line.getId() != null).collect(Collectors.toList());
|
||||
pmSubCheckLowRepository.batchInsertSelective(insertList);
|
||||
pmSubCheckLowRepository.batchUpdateByPrimaryKeySelective(updateList);
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,169 @@
|
||||
package com.xisc.pm.domain.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.choerodon.mybatis.annotation.ModifyAudit;
|
||||
import io.choerodon.mybatis.annotation.VersionAudit;
|
||||
import io.choerodon.mybatis.domain.AuditDomain;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 化学成分检测结果表(PmSubCheckChm)实体类
|
||||
*
|
||||
* @author BKGY
|
||||
* @since 2025-03-26 16:22:50
|
||||
*/
|
||||
|
||||
@ApiModel("化学成分检测结果表")
|
||||
@VersionAudit
|
||||
@ModifyAudit
|
||||
@JsonInclude(value = JsonInclude.Include.NON_NULL)
|
||||
@Table(name = "PM_SUB_CHECK_CHM")
|
||||
public class PmSubCheckChm extends AuditDomain implements Serializable {
|
||||
private static final long serialVersionUID = -82115762043290499L;
|
||||
|
||||
public static final String FIELD_ID = "id";
|
||||
public static final String FIELD_PONO = "pono";
|
||||
public static final String FIELD_ORDER_NO = "orderNo";
|
||||
public static final String FIELD_CHM_RESULT = "chmResult";
|
||||
public static final String FIELD_OLD_RESULT = "oldResult";
|
||||
public static final String FIELD_TENANT_ID = "tenantId";
|
||||
public static final String FIELD_ATTRIBUTE1 = "attribute1";
|
||||
public static final String FIELD_ATTRIBUTE2 = "attribute2";
|
||||
public static final String FIELD_ATTRIBUTE3 = "attribute3";
|
||||
public static final String FIELD_ATTRIBUTE4 = "attribute4";
|
||||
public static final String FIELD_ATTRIBUTE5 = "attribute5";
|
||||
|
||||
@ApiModelProperty("主键ID")
|
||||
@Id
|
||||
@GeneratedValue
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "命令号", required = true)
|
||||
@NotBlank
|
||||
private String pono;
|
||||
|
||||
@ApiModelProperty(value = "合同号", required = true)
|
||||
@NotBlank
|
||||
private String orderNo;
|
||||
|
||||
@ApiModelProperty(value = "检验结果")
|
||||
private String chmResult;
|
||||
|
||||
@ApiModelProperty(value = "历史结果")
|
||||
private String oldResult;
|
||||
|
||||
@ApiModelProperty(value = "租户ID", required = true)
|
||||
@NotNull
|
||||
private Long tenantId;
|
||||
|
||||
private String attribute1;
|
||||
|
||||
private String attribute2;
|
||||
|
||||
private String attribute3;
|
||||
|
||||
private String attribute4;
|
||||
|
||||
private String attribute5;
|
||||
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getPono() {
|
||||
return pono;
|
||||
}
|
||||
|
||||
public void setPono(String pono) {
|
||||
this.pono = pono;
|
||||
}
|
||||
|
||||
public String getOrderNo() {
|
||||
return orderNo;
|
||||
}
|
||||
|
||||
public void setOrderNo(String orderNo) {
|
||||
this.orderNo = orderNo;
|
||||
}
|
||||
|
||||
public String getChmResult() {
|
||||
return chmResult;
|
||||
}
|
||||
|
||||
public void setChmResult(String chmResult) {
|
||||
this.chmResult = chmResult;
|
||||
}
|
||||
|
||||
public String getOldResult() {
|
||||
return oldResult;
|
||||
}
|
||||
|
||||
public void setOldResult(String oldResult) {
|
||||
this.oldResult = oldResult;
|
||||
}
|
||||
|
||||
public Long getTenantId() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
public void setTenantId(Long tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public String getAttribute1() {
|
||||
return attribute1;
|
||||
}
|
||||
|
||||
public void setAttribute1(String attribute1) {
|
||||
this.attribute1 = attribute1;
|
||||
}
|
||||
|
||||
public String getAttribute2() {
|
||||
return attribute2;
|
||||
}
|
||||
|
||||
public void setAttribute2(String attribute2) {
|
||||
this.attribute2 = attribute2;
|
||||
}
|
||||
|
||||
public String getAttribute3() {
|
||||
return attribute3;
|
||||
}
|
||||
|
||||
public void setAttribute3(String attribute3) {
|
||||
this.attribute3 = attribute3;
|
||||
}
|
||||
|
||||
public String getAttribute4() {
|
||||
return attribute4;
|
||||
}
|
||||
|
||||
public void setAttribute4(String attribute4) {
|
||||
this.attribute4 = attribute4;
|
||||
}
|
||||
|
||||
public String getAttribute5() {
|
||||
return attribute5;
|
||||
}
|
||||
|
||||
public void setAttribute5(String attribute5) {
|
||||
this.attribute5 = attribute5;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,169 @@
|
||||
package com.xisc.pm.domain.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.choerodon.mybatis.annotation.ModifyAudit;
|
||||
import io.choerodon.mybatis.annotation.VersionAudit;
|
||||
import io.choerodon.mybatis.domain.AuditDomain;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 低倍检测结果表(PmSubCheckLow)实体类
|
||||
*
|
||||
* @author BKGY
|
||||
* @since 2025-03-26 16:27:36
|
||||
*/
|
||||
|
||||
@ApiModel("低倍检测结果表")
|
||||
@VersionAudit
|
||||
@ModifyAudit
|
||||
@JsonInclude(value = JsonInclude.Include.NON_NULL)
|
||||
@Table(name = "PM_SUB_CHECK_LOW")
|
||||
public class PmSubCheckLow extends AuditDomain implements Serializable {
|
||||
private static final long serialVersionUID = 733808478788054920L;
|
||||
|
||||
public static final String FIELD_ID = "id";
|
||||
public static final String FIELD_PONO = "pono";
|
||||
public static final String FIELD_ORDER_NO = "orderNo";
|
||||
public static final String FIELD_LOW_RESULT = "lowResult";
|
||||
public static final String FIELD_OLD_RESULT = "oldResult";
|
||||
public static final String FIELD_TENANT_ID = "tenantId";
|
||||
public static final String FIELD_ATTRIBUTE1 = "attribute1";
|
||||
public static final String FIELD_ATTRIBUTE2 = "attribute2";
|
||||
public static final String FIELD_ATTRIBUTE3 = "attribute3";
|
||||
public static final String FIELD_ATTRIBUTE4 = "attribute4";
|
||||
public static final String FIELD_ATTRIBUTE5 = "attribute5";
|
||||
|
||||
@ApiModelProperty("主键ID")
|
||||
@Id
|
||||
@GeneratedValue
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "命令号", required = true)
|
||||
@NotBlank
|
||||
private String pono;
|
||||
|
||||
@ApiModelProperty(value = "合同号", required = true)
|
||||
@NotBlank
|
||||
private String orderNo;
|
||||
|
||||
@ApiModelProperty(value = "检验结果")
|
||||
private String lowResult;
|
||||
|
||||
@ApiModelProperty(value = "历史结果")
|
||||
private String oldResult;
|
||||
|
||||
@ApiModelProperty(value = "租户ID", required = true)
|
||||
@NotNull
|
||||
private Long tenantId;
|
||||
|
||||
private String attribute1;
|
||||
|
||||
private String attribute2;
|
||||
|
||||
private String attribute3;
|
||||
|
||||
private String attribute4;
|
||||
|
||||
private String attribute5;
|
||||
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getPono() {
|
||||
return pono;
|
||||
}
|
||||
|
||||
public void setPono(String pono) {
|
||||
this.pono = pono;
|
||||
}
|
||||
|
||||
public String getOrderNo() {
|
||||
return orderNo;
|
||||
}
|
||||
|
||||
public void setOrderNo(String orderNo) {
|
||||
this.orderNo = orderNo;
|
||||
}
|
||||
|
||||
public String getLowResult() {
|
||||
return lowResult;
|
||||
}
|
||||
|
||||
public void setLowResult(String lowResult) {
|
||||
this.lowResult = lowResult;
|
||||
}
|
||||
|
||||
public String getOldResult() {
|
||||
return oldResult;
|
||||
}
|
||||
|
||||
public void setOldResult(String oldResult) {
|
||||
this.oldResult = oldResult;
|
||||
}
|
||||
|
||||
public Long getTenantId() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
public void setTenantId(Long tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public String getAttribute1() {
|
||||
return attribute1;
|
||||
}
|
||||
|
||||
public void setAttribute1(String attribute1) {
|
||||
this.attribute1 = attribute1;
|
||||
}
|
||||
|
||||
public String getAttribute2() {
|
||||
return attribute2;
|
||||
}
|
||||
|
||||
public void setAttribute2(String attribute2) {
|
||||
this.attribute2 = attribute2;
|
||||
}
|
||||
|
||||
public String getAttribute3() {
|
||||
return attribute3;
|
||||
}
|
||||
|
||||
public void setAttribute3(String attribute3) {
|
||||
this.attribute3 = attribute3;
|
||||
}
|
||||
|
||||
public String getAttribute4() {
|
||||
return attribute4;
|
||||
}
|
||||
|
||||
public void setAttribute4(String attribute4) {
|
||||
this.attribute4 = attribute4;
|
||||
}
|
||||
|
||||
public String getAttribute5() {
|
||||
return attribute5;
|
||||
}
|
||||
|
||||
public void setAttribute5(String attribute5) {
|
||||
this.attribute5 = attribute5;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,25 @@
|
||||
package com.xisc.pm.infra.mapper;
|
||||
|
||||
import io.choerodon.mybatis.common.BaseMapper;
|
||||
import com.xisc.pm.domain.entity.PmSubCheckChm;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 化学成分检测结果表(PmSubCheckChm)应用服务
|
||||
*
|
||||
* @author BKGY
|
||||
* @since 2025-03-26 16:22:51
|
||||
*/
|
||||
public interface PmSubCheckChmMapper extends BaseMapper<PmSubCheckChm> {
|
||||
/**
|
||||
* 基础查询
|
||||
*
|
||||
* @param pmSubCheckChm 查询条件
|
||||
* @return 返回值
|
||||
*/
|
||||
List<PmSubCheckChm> selectList(PmSubCheckChm pmSubCheckChm);
|
||||
|
||||
PmSubCheckChm selectByPonoAndOrderNo(PmSubCheckChm pmSubCheckChm);
|
||||
}
|
||||
|
@ -0,0 +1,25 @@
|
||||
package com.xisc.pm.infra.mapper;
|
||||
|
||||
import io.choerodon.mybatis.common.BaseMapper;
|
||||
import com.xisc.pm.domain.entity.PmSubCheckLow;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 低倍检测结果表(PmSubCheckLow)应用服务
|
||||
*
|
||||
* @author BKGY
|
||||
* @since 2025-03-26 16:27:36
|
||||
*/
|
||||
public interface PmSubCheckLowMapper extends BaseMapper<PmSubCheckLow> {
|
||||
/**
|
||||
* 基础查询
|
||||
*
|
||||
* @param pmSubCheckLow 查询条件
|
||||
* @return 返回值
|
||||
*/
|
||||
List<PmSubCheckLow> selectList(PmSubCheckLow pmSubCheckLow);
|
||||
|
||||
PmSubCheckLow selectByPonoAndOrderNo(PmSubCheckLow pmSubCheckLow);
|
||||
}
|
||||
|
@ -0,0 +1,46 @@
|
||||
package com.xisc.pm.infra.repository.impl;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.hzero.mybatis.base.impl.BaseRepositoryImpl;
|
||||
import org.springframework.stereotype.Component;
|
||||
import com.xisc.pm.domain.entity.PmSubCheckChm;
|
||||
import com.xisc.pm.domain.repository.PmSubCheckChmRepository;
|
||||
import com.xisc.pm.infra.mapper.PmSubCheckChmMapper;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 化学成分检测结果表(PmSubCheckChm)资源库
|
||||
*
|
||||
* @author BKGY
|
||||
* @since 2025-03-26 16:22:52
|
||||
*/
|
||||
@Component
|
||||
public class PmSubCheckChmRepositoryImpl extends BaseRepositoryImpl<PmSubCheckChm> implements PmSubCheckChmRepository {
|
||||
@Resource
|
||||
private PmSubCheckChmMapper pmSubCheckChmMapper;
|
||||
|
||||
@Override
|
||||
public List<PmSubCheckChm> selectList(PmSubCheckChm pmSubCheckChm) {
|
||||
return pmSubCheckChmMapper.selectList(pmSubCheckChm);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PmSubCheckChm selectByPrimary(Long id) {
|
||||
PmSubCheckChm pmSubCheckChm = new PmSubCheckChm();
|
||||
pmSubCheckChm.setId(id);
|
||||
List<PmSubCheckChm> pmSubCheckChms = pmSubCheckChmMapper.selectList(pmSubCheckChm);
|
||||
if (CollectionUtils.isEmpty(pmSubCheckChms)) {
|
||||
return null;
|
||||
}
|
||||
return pmSubCheckChms.get(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PmSubCheckChm selectByPonoAndOrderNo(PmSubCheckChm pmSubCheckChm) {
|
||||
return pmSubCheckChmMapper.selectByPonoAndOrderNo(pmSubCheckChm);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,46 @@
|
||||
package com.xisc.pm.infra.repository.impl;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.hzero.mybatis.base.impl.BaseRepositoryImpl;
|
||||
import org.springframework.stereotype.Component;
|
||||
import com.xisc.pm.domain.entity.PmSubCheckLow;
|
||||
import com.xisc.pm.domain.repository.PmSubCheckLowRepository;
|
||||
import com.xisc.pm.infra.mapper.PmSubCheckLowMapper;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 低倍检测结果表(PmSubCheckLow)资源库
|
||||
*
|
||||
* @author BKGY
|
||||
* @since 2025-03-26 16:27:37
|
||||
*/
|
||||
@Component
|
||||
public class PmSubCheckLowRepositoryImpl extends BaseRepositoryImpl<PmSubCheckLow> implements PmSubCheckLowRepository {
|
||||
@Resource
|
||||
private PmSubCheckLowMapper pmSubCheckLowMapper;
|
||||
|
||||
@Override
|
||||
public List<PmSubCheckLow> selectList(PmSubCheckLow pmSubCheckLow) {
|
||||
return pmSubCheckLowMapper.selectList(pmSubCheckLow);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PmSubCheckLow selectByPrimary(Long id) {
|
||||
PmSubCheckLow pmSubCheckLow = new PmSubCheckLow();
|
||||
pmSubCheckLow.setId(id);
|
||||
List<PmSubCheckLow> pmSubCheckLows = pmSubCheckLowMapper.selectList(pmSubCheckLow);
|
||||
if (CollectionUtils.isEmpty(pmSubCheckLows)) {
|
||||
return null;
|
||||
}
|
||||
return pmSubCheckLows.get(0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PmSubCheckLow selectByPonoAndOrderNo(PmSubCheckLow pmSubCheckLow) {
|
||||
return pmSubCheckLowMapper.selectByPonoAndOrderNo(pmSubCheckLow);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,70 @@
|
||||
<?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.xisc.pm.infra.mapper.PmSubCheckChmMapper">
|
||||
|
||||
|
||||
<sql id = "BaseSql">
|
||||
PSCC.ID,
|
||||
PSCC.PONO,
|
||||
PSCC.ORDER_NO,
|
||||
PSCC.CHM_RESULT,
|
||||
PSCC.OLD_RESULT,
|
||||
PSCC.TENANT_ID,
|
||||
PSCC.ATTRIBUTE1,
|
||||
PSCC.ATTRIBUTE2,
|
||||
PSCC.ATTRIBUTE3,
|
||||
PSCC.ATTRIBUTE4,
|
||||
PSCC.ATTRIBUTE5,
|
||||
PSCC.creation_date, PSCC.created_by, PSCC.last_updated_by, PSCC.last_update_date, PSCC.object_version_number
|
||||
</sql>
|
||||
|
||||
<select id = "selectList" resultType = "com.xisc.pm.domain.entity.PmSubCheckChm">
|
||||
select
|
||||
<include refid = "BaseSql"/>
|
||||
from PM_SUB_CHECK_CHM PSCC
|
||||
<where>
|
||||
<if test="id !=null">
|
||||
and PSCC.ID = #{id,jdbcType = INTEGER}
|
||||
</if>
|
||||
<if test="pono !=null">
|
||||
and PSCC.PONO = #{pono,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="orderNo !=null">
|
||||
and PSCC.ORDER_NO = #{orderNo,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="chmResult !=null">
|
||||
and PSCC.CHM_RESULT = #{chmResult,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="oldResult !=null">
|
||||
and PSCC.OLD_RESULT = #{oldResult,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="tenantId !=null">
|
||||
and PSCC.TENANT_ID = #{tenantId,jdbcType = INTEGER}
|
||||
</if>
|
||||
<if test="attribute1 !=null">
|
||||
and PSCC.ATTRIBUTE1 = #{attribute1,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="attribute2 !=null">
|
||||
and PSCC.ATTRIBUTE2 = #{attribute2,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="attribute3 !=null">
|
||||
and PSCC.ATTRIBUTE3 = #{attribute3,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="attribute4 !=null">
|
||||
and PSCC.ATTRIBUTE4 = #{attribute4,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="attribute5 !=null">
|
||||
and PSCC.ATTRIBUTE5 = #{attribute5,jdbcType = VARCHAR}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id = "selectByPonoAndOrderNo" resultType = "com.xisc.pm.domain.entity.PmSubCheckChm">
|
||||
select
|
||||
<include refid = "BaseSql"/>
|
||||
from PM_SUB_CHECK_CHM PSCC
|
||||
where PSCC.PONO = #{pono,jdbcType = VARCHAR}
|
||||
and PSCC.ORDER_NO = #{orderNo,jdbcType = VARCHAR}
|
||||
</select>
|
||||
</mapper>
|
||||
|
@ -0,0 +1,70 @@
|
||||
<?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.xisc.pm.infra.mapper.PmSubCheckLowMapper">
|
||||
|
||||
|
||||
<sql id = "BaseSql">
|
||||
PSCL.ID,
|
||||
PSCL.PONO,
|
||||
PSCL.ORDER_NO,
|
||||
PSCL.LOW_RESULT,
|
||||
PSCL.OLD_RESULT,
|
||||
PSCL.TENANT_ID,
|
||||
PSCL.ATTRIBUTE1,
|
||||
PSCL.ATTRIBUTE2,
|
||||
PSCL.ATTRIBUTE3,
|
||||
PSCL.ATTRIBUTE4,
|
||||
PSCL.ATTRIBUTE5,
|
||||
PSCL.creation_date, PSCL.created_by, PSCL.last_updated_by, PSCL.last_update_date, PSCL.object_version_number
|
||||
</sql>
|
||||
|
||||
<select id = "selectList" resultType = "com.xisc.pm.domain.entity.PmSubCheckLow">
|
||||
select
|
||||
<include refid = "BaseSql"/>
|
||||
from PM_SUB_CHECK_LOW PSCL
|
||||
<where>
|
||||
<if test="id !=null">
|
||||
and PSCL.ID = #{id,jdbcType = INTEGER}
|
||||
</if>
|
||||
<if test="pono !=null">
|
||||
and PSCL.PONO = #{pono,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="orderNo !=null">
|
||||
and PSCL.ORDER_NO = #{orderNo,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="lowResult !=null">
|
||||
and PSCL.LOW_RESULT = #{lowResult,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="oldResult !=null">
|
||||
and PSCL.OLD_RESULT = #{oldResult,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="tenantId !=null">
|
||||
and PSCL.TENANT_ID = #{tenantId,jdbcType = INTEGER}
|
||||
</if>
|
||||
<if test="attribute1 !=null">
|
||||
and PSCL.ATTRIBUTE1 = #{attribute1,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="attribute2 !=null">
|
||||
and PSCL.ATTRIBUTE2 = #{attribute2,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="attribute3 !=null">
|
||||
and PSCL.ATTRIBUTE3 = #{attribute3,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="attribute4 !=null">
|
||||
and PSCL.ATTRIBUTE4 = #{attribute4,jdbcType = VARCHAR}
|
||||
</if>
|
||||
<if test="attribute5 !=null">
|
||||
and PSCL.ATTRIBUTE5 = #{attribute5,jdbcType = VARCHAR}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id = "selectByPonoAndOrderNo" resultType = "com.xisc.pm.domain.entity.PmSubCheckLow">
|
||||
select
|
||||
<include refid = "BaseSql"/>
|
||||
from PM_SUB_CHECK_LOW PSCL
|
||||
where PSCL.PONO = #{pono,jdbcType = VARCHAR}
|
||||
and PSCL.ORDER_NO = #{orderNo,jdbcType = VARCHAR}
|
||||
</select>
|
||||
</mapper>
|
||||
|
Loading…
Reference in New Issue