质量系统-检验任务管理1
parent
ac2f99c2c7
commit
34aad9a2bf
@ -0,0 +1,87 @@
|
||||
package com.op.quality.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.op.common.log.annotation.Log;
|
||||
import com.op.common.log.enums.BusinessType;
|
||||
import com.op.common.security.annotation.RequiresPermissions;
|
||||
import com.op.quality.domain.QcCheckTaskDetail;
|
||||
import com.op.quality.service.IQcCheckTaskDetailService;
|
||||
import com.op.common.core.web.controller.BaseController;
|
||||
import com.op.common.core.web.domain.AjaxResult;
|
||||
import com.op.common.core.utils.poi.ExcelUtil;
|
||||
import com.op.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 检验任务详情Controller
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/qcDetail")
|
||||
public class QcCheckTaskDetailController extends BaseController {
|
||||
@Autowired
|
||||
private IQcCheckTaskDetailService qcCheckTaskDetailService;
|
||||
|
||||
/**
|
||||
* 查询检验任务详情列表
|
||||
*/
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(QcCheckTaskDetail qcCheckTaskDetail) {
|
||||
startPage();
|
||||
List<QcCheckTaskDetail> list = qcCheckTaskDetailService.selectQcCheckTaskDetailList(qcCheckTaskDetail);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出检验任务详情列表
|
||||
*/
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, QcCheckTaskDetail qcCheckTaskDetail) {
|
||||
List<QcCheckTaskDetail> list = qcCheckTaskDetailService.selectQcCheckTaskDetailList(qcCheckTaskDetail);
|
||||
ExcelUtil<QcCheckTaskDetail> util = new ExcelUtil<QcCheckTaskDetail>(QcCheckTaskDetail.class);
|
||||
util.exportExcel(response, list, "检验任务详情数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取检验任务详情详细信息
|
||||
*/
|
||||
@GetMapping(value = "/{recordId}")
|
||||
public AjaxResult getInfo(@PathVariable("recordId") String recordId) {
|
||||
return success(qcCheckTaskDetailService.selectQcCheckTaskDetailByRecordId(recordId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检验任务详情
|
||||
*/
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody QcCheckTaskDetail qcCheckTaskDetail) {
|
||||
return toAjax(qcCheckTaskDetailService.insertQcCheckTaskDetail(qcCheckTaskDetail));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检验任务详情
|
||||
*/
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody QcCheckTaskDetail qcCheckTaskDetail) {
|
||||
return toAjax(qcCheckTaskDetailService.updateQcCheckTaskDetail(qcCheckTaskDetail));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检验任务详情
|
||||
*/
|
||||
@DeleteMapping("/{recordIds}")
|
||||
public AjaxResult remove(@PathVariable String[] recordIds) {
|
||||
return toAjax(qcCheckTaskDetailService.deleteQcCheckTaskDetailByRecordIds(recordIds));
|
||||
}
|
||||
}
|
@ -0,0 +1,109 @@
|
||||
package com.op.quality.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.op.quality.domain.QcBomComponent;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.op.common.log.annotation.Log;
|
||||
import com.op.common.log.enums.BusinessType;
|
||||
import com.op.common.security.annotation.RequiresPermissions;
|
||||
import com.op.quality.domain.QcCheckTaskIncome;
|
||||
import com.op.quality.service.IQcCheckTaskIncomeService;
|
||||
import com.op.common.core.web.controller.BaseController;
|
||||
import com.op.common.core.web.domain.AjaxResult;
|
||||
import com.op.common.core.utils.poi.ExcelUtil;
|
||||
import com.op.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 来料检验Controller
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/qcIncome")
|
||||
public class QcCheckTaskIncomeController extends BaseController {
|
||||
@Autowired
|
||||
private IQcCheckTaskIncomeService qcCheckTaskIncomeService;
|
||||
|
||||
/**
|
||||
* 查询来料检验列表
|
||||
*/
|
||||
@RequiresPermissions("quality:qcIncome:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(QcCheckTaskIncome qcCheckTaskIncome) {
|
||||
startPage();
|
||||
List<QcCheckTaskIncome> list = qcCheckTaskIncomeService.selectQcCheckTaskIncomeList(qcCheckTaskIncome);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出来料检验列表
|
||||
*/
|
||||
@RequiresPermissions("quality:qcIncome:export")
|
||||
@Log(title = "来料检验", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, QcCheckTaskIncome qcCheckTaskIncome) {
|
||||
List<QcCheckTaskIncome> list = qcCheckTaskIncomeService.selectQcCheckTaskIncomeList(qcCheckTaskIncome);
|
||||
ExcelUtil<QcCheckTaskIncome> util = new ExcelUtil<QcCheckTaskIncome>(QcCheckTaskIncome.class);
|
||||
util.exportExcel(response, list, "来料检验数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取来料检验详细信息
|
||||
*/
|
||||
@RequiresPermissions("quality:qcIncome:query")
|
||||
@GetMapping(value = "/{recordId}")
|
||||
public AjaxResult getInfo(@PathVariable("recordId") String recordId) {
|
||||
return success(qcCheckTaskIncomeService.selectQcCheckTaskIncomeByRecordId(recordId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增来料检验
|
||||
*/
|
||||
@RequiresPermissions("quality:qcIncome:add")
|
||||
@Log(title = "来料检验", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody QcCheckTaskIncome qcCheckTaskIncome) {
|
||||
return toAjax(qcCheckTaskIncomeService.insertQcCheckTaskIncome(qcCheckTaskIncome));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改来料检验
|
||||
*/
|
||||
@RequiresPermissions("quality:qcIncome:edit")
|
||||
@Log(title = "来料检验", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody QcCheckTaskIncome qcCheckTaskIncome) {
|
||||
return toAjax(qcCheckTaskIncomeService.updateQcCheckTaskIncome(qcCheckTaskIncome));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除来料检验
|
||||
*/
|
||||
@RequiresPermissions("quality:qcIncome:remove")
|
||||
@Log(title = "来料检验", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{recordIds}")
|
||||
public AjaxResult remove(@PathVariable String[] recordIds) {
|
||||
return toAjax(qcCheckTaskIncomeService.deleteQcCheckTaskIncomeByRecordIds(recordIds));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询BOM物料管理列表
|
||||
*/
|
||||
@GetMapping("/getQcListBom")
|
||||
public TableDataInfo getQcListBom(QcBomComponent bomComponent) {
|
||||
startPage();
|
||||
List<QcBomComponent> list = qcCheckTaskIncomeService.getQcListBom(bomComponent);
|
||||
return getDataTable(list);
|
||||
}
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package com.op.quality.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.op.common.log.annotation.Log;
|
||||
import com.op.common.log.enums.BusinessType;
|
||||
import com.op.common.security.annotation.RequiresPermissions;
|
||||
import com.op.quality.domain.QcCheckTaskProduce;
|
||||
import com.op.quality.service.IQcCheckTaskProduceService;
|
||||
import com.op.common.core.web.controller.BaseController;
|
||||
import com.op.common.core.web.domain.AjaxResult;
|
||||
import com.op.common.core.utils.poi.ExcelUtil;
|
||||
import com.op.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 生产过程检验任务Controller
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/qcProduce")
|
||||
public class QcCheckTaskProduceController extends BaseController {
|
||||
@Autowired
|
||||
private IQcCheckTaskProduceService qcCheckTaskProduceService;
|
||||
|
||||
/**
|
||||
* 查询生产过程检验任务列表
|
||||
*/
|
||||
@RequiresPermissions("quality:qcProduce:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(QcCheckTaskProduce qcCheckTaskProduce) {
|
||||
startPage();
|
||||
List<QcCheckTaskProduce> list = qcCheckTaskProduceService.selectQcCheckTaskProduceList(qcCheckTaskProduce);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出生产过程检验任务列表
|
||||
*/
|
||||
@RequiresPermissions("quality:qcProduce:export")
|
||||
@Log(title = "生产过程检验任务", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, QcCheckTaskProduce qcCheckTaskProduce) {
|
||||
List<QcCheckTaskProduce> list = qcCheckTaskProduceService.selectQcCheckTaskProduceList(qcCheckTaskProduce);
|
||||
ExcelUtil<QcCheckTaskProduce> util = new ExcelUtil<QcCheckTaskProduce>(QcCheckTaskProduce.class);
|
||||
util.exportExcel(response, list, "生产过程检验任务数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取生产过程检验任务详细信息
|
||||
*/
|
||||
@RequiresPermissions("quality:qcProduce:query")
|
||||
@GetMapping(value = "/{recordId}")
|
||||
public AjaxResult getInfo(@PathVariable("recordId") String recordId) {
|
||||
return success(qcCheckTaskProduceService.selectQcCheckTaskProduceByRecordId(recordId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增生产过程检验任务
|
||||
*/
|
||||
@RequiresPermissions("quality:qcProduce:add")
|
||||
@Log(title = "生产过程检验任务", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody QcCheckTaskProduce qcCheckTaskProduce) {
|
||||
return toAjax(qcCheckTaskProduceService.insertQcCheckTaskProduce(qcCheckTaskProduce));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改生产过程检验任务
|
||||
*/
|
||||
@RequiresPermissions("quality:qcProduce:edit")
|
||||
@Log(title = "生产过程检验任务", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody QcCheckTaskProduce qcCheckTaskProduce) {
|
||||
return toAjax(qcCheckTaskProduceService.updateQcCheckTaskProduce(qcCheckTaskProduce));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除生产过程检验任务
|
||||
*/
|
||||
@RequiresPermissions("quality:qcProduce:remove")
|
||||
@Log(title = "生产过程检验任务", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{recordIds}")
|
||||
public AjaxResult remove(@PathVariable String[] recordIds) {
|
||||
return toAjax(qcCheckTaskProduceService.deleteQcCheckTaskProduceByRecordIds(recordIds));
|
||||
}
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package com.op.quality.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.op.common.log.annotation.Log;
|
||||
import com.op.common.log.enums.BusinessType;
|
||||
import com.op.common.security.annotation.RequiresPermissions;
|
||||
import com.op.quality.domain.QcCheckTaskWarehousing;
|
||||
import com.op.quality.service.IQcCheckTaskWarehousingService;
|
||||
import com.op.common.core.web.controller.BaseController;
|
||||
import com.op.common.core.web.domain.AjaxResult;
|
||||
import com.op.common.core.utils.poi.ExcelUtil;
|
||||
import com.op.common.core.web.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 成品入库检验任务Controller
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/qcWarehousing")
|
||||
public class QcCheckTaskWarehousingController extends BaseController {
|
||||
@Autowired
|
||||
private IQcCheckTaskWarehousingService qcCheckTaskWarehousingService;
|
||||
|
||||
/**
|
||||
* 查询成品入库检验任务列表
|
||||
*/
|
||||
@RequiresPermissions("quality:qcWarehousing:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(QcCheckTaskWarehousing qcCheckTaskWarehousing) {
|
||||
startPage();
|
||||
List<QcCheckTaskWarehousing> list = qcCheckTaskWarehousingService.selectQcCheckTaskWarehousingList(qcCheckTaskWarehousing);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出成品入库检验任务列表
|
||||
*/
|
||||
@RequiresPermissions("quality:qcWarehousing:export")
|
||||
@Log(title = "成品入库检验任务", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, QcCheckTaskWarehousing qcCheckTaskWarehousing) {
|
||||
List<QcCheckTaskWarehousing> list = qcCheckTaskWarehousingService.selectQcCheckTaskWarehousingList(qcCheckTaskWarehousing);
|
||||
ExcelUtil<QcCheckTaskWarehousing> util = new ExcelUtil<QcCheckTaskWarehousing>(QcCheckTaskWarehousing.class);
|
||||
util.exportExcel(response, list, "成品入库检验任务数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取成品入库检验任务详细信息
|
||||
*/
|
||||
@RequiresPermissions("quality:qcWarehousing:query")
|
||||
@GetMapping(value = "/{recordId}")
|
||||
public AjaxResult getInfo(@PathVariable("recordId") String recordId) {
|
||||
return success(qcCheckTaskWarehousingService.selectQcCheckTaskWarehousingByRecordId(recordId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增成品入库检验任务
|
||||
*/
|
||||
@RequiresPermissions("quality:qcWarehousing:add")
|
||||
@Log(title = "成品入库检验任务", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody QcCheckTaskWarehousing qcCheckTaskWarehousing) {
|
||||
return toAjax(qcCheckTaskWarehousingService.insertQcCheckTaskWarehousing(qcCheckTaskWarehousing));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改成品入库检验任务
|
||||
*/
|
||||
@RequiresPermissions("quality:qcWarehousing:edit")
|
||||
@Log(title = "成品入库检验任务", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody QcCheckTaskWarehousing qcCheckTaskWarehousing) {
|
||||
return toAjax(qcCheckTaskWarehousingService.updateQcCheckTaskWarehousing(qcCheckTaskWarehousing));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除成品入库检验任务
|
||||
*/
|
||||
@RequiresPermissions("quality:qcWarehousing:remove")
|
||||
@Log(title = "成品入库检验任务", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{recordIds}")
|
||||
public AjaxResult remove(@PathVariable String[] recordIds) {
|
||||
return toAjax(qcCheckTaskWarehousingService.deleteQcCheckTaskWarehousingByRecordIds(recordIds));
|
||||
}
|
||||
}
|
@ -0,0 +1,303 @@
|
||||
package com.op.quality.domain;
|
||||
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 物料BOM子表对象 base_bom_component
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-04
|
||||
*/
|
||||
public class QcBomComponent extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String handle;
|
||||
|
||||
/** BOM单号 */
|
||||
@Excel(name = "BOM单号")
|
||||
private String bomCode;
|
||||
|
||||
private String bomName;
|
||||
|
||||
/** 工厂/站点 */
|
||||
@Excel(name = "工厂/站点")
|
||||
private String site;
|
||||
|
||||
/** 物料编码 */
|
||||
@Excel(name = "物料编码")
|
||||
private String productCode;
|
||||
|
||||
/** 组件上层物料编码 */
|
||||
@Excel(name = "组件上层物料编码")
|
||||
private String cumc;
|
||||
|
||||
/** 组件编码 */
|
||||
@Excel(name = "组件编码")
|
||||
private String component;
|
||||
|
||||
/** BOM层次 */
|
||||
@Excel(name = "BOM层次")
|
||||
private String bomHierarchy;
|
||||
|
||||
/** 项目编号 */
|
||||
@Excel(name = "项目编号")
|
||||
private String projectNo;
|
||||
|
||||
/** 标准用量 */
|
||||
@Excel(name = "标准用量")
|
||||
private Long standardDosage;
|
||||
|
||||
/** 损耗率 */
|
||||
@Excel(name = "损耗率")
|
||||
private Long lossRate;
|
||||
|
||||
/** 损耗额 */
|
||||
@Excel(name = "损耗额")
|
||||
private Long lossAmount;
|
||||
|
||||
/** 含损耗用量 */
|
||||
@Excel(name = "含损耗用量")
|
||||
private Long cilosses;
|
||||
|
||||
/** 组件数量单位 */
|
||||
@Excel(name = "组件数量单位")
|
||||
private String componentUnit;
|
||||
|
||||
/** 组件采购标志 */
|
||||
@Excel(name = "组件采购标志")
|
||||
private String componentProFlag;
|
||||
|
||||
/** 物料供应标识 */
|
||||
@Excel(name = "物料供应标识")
|
||||
private String msi;
|
||||
|
||||
/** 成本核算标识相关 */
|
||||
@Excel(name = "成本核算标识相关")
|
||||
private String sanka;
|
||||
|
||||
/** 预留字段1 */
|
||||
@Excel(name = "预留字段1")
|
||||
private String attr1;
|
||||
|
||||
/** 预留字段2 */
|
||||
@Excel(name = "预留字段2")
|
||||
private String attr2;
|
||||
|
||||
/** 预留字段3 */
|
||||
@Excel(name = "预留字段3")
|
||||
private String attr3;
|
||||
|
||||
//虚拟字段
|
||||
@Excel(name = "组件上层物料名称")
|
||||
private String componentName;
|
||||
|
||||
/** 产品描述 */
|
||||
@Excel(name = "产品描述")
|
||||
private String productDescZh;
|
||||
|
||||
// private List<BaseBomComponent> children;
|
||||
//
|
||||
// public List<BaseBomComponent> getChildren() {
|
||||
// return children;
|
||||
// }
|
||||
//
|
||||
// public void setChildren(List<BaseBomComponent> children) {
|
||||
// this.children = children;
|
||||
// }
|
||||
|
||||
public void setHandle(String handle) {
|
||||
this.handle = handle;
|
||||
}
|
||||
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
public void setBomCode(String bomCode) {
|
||||
this.bomCode = bomCode;
|
||||
}
|
||||
|
||||
public String getBomCode() {
|
||||
return bomCode;
|
||||
}
|
||||
|
||||
public void setBomName(String bomName) {
|
||||
this.bomName = bomName;
|
||||
}
|
||||
|
||||
public String getBomName() {
|
||||
return bomName;
|
||||
}
|
||||
|
||||
public void setSite(String site) {
|
||||
this.site = site;
|
||||
}
|
||||
|
||||
public String getSite() {
|
||||
return site;
|
||||
}
|
||||
public void setProductCode(String productCode) {
|
||||
this.productCode = productCode;
|
||||
}
|
||||
|
||||
public String getProductCode() {
|
||||
return productCode;
|
||||
}
|
||||
|
||||
public void setProductDescZh(String productDescZh) {
|
||||
this.productDescZh = productDescZh;
|
||||
}
|
||||
|
||||
public String getProductDescZh() {
|
||||
return productDescZh;
|
||||
}
|
||||
|
||||
public void setCumc(String cumc) {
|
||||
this.cumc = cumc;
|
||||
}
|
||||
|
||||
public String getCumc() {
|
||||
return cumc;
|
||||
}
|
||||
public void setComponent(String component) {
|
||||
this.component = component;
|
||||
}
|
||||
|
||||
public String getComponentName() {
|
||||
return componentName;
|
||||
}
|
||||
public void setComponentName(String componentName) {
|
||||
this.componentName = componentName;
|
||||
}
|
||||
|
||||
public String getComponent() {
|
||||
return component;
|
||||
}
|
||||
public void setBomHierarchy(String bomHierarchy) {
|
||||
this.bomHierarchy = bomHierarchy;
|
||||
}
|
||||
|
||||
public String getBomHierarchy() {
|
||||
return bomHierarchy;
|
||||
}
|
||||
public void setProjectNo(String projectNo) {
|
||||
this.projectNo = projectNo;
|
||||
}
|
||||
|
||||
public String getProjectNo() {
|
||||
return projectNo;
|
||||
}
|
||||
public void setStandardDosage(Long standardDosage) {
|
||||
this.standardDosage = standardDosage;
|
||||
}
|
||||
|
||||
public Long getStandardDosage() {
|
||||
return standardDosage;
|
||||
}
|
||||
public void setLossRate(Long lossRate) {
|
||||
this.lossRate = lossRate;
|
||||
}
|
||||
|
||||
public Long getLossRate() {
|
||||
return lossRate;
|
||||
}
|
||||
public void setLossAmount(Long lossAmount) {
|
||||
this.lossAmount = lossAmount;
|
||||
}
|
||||
|
||||
public Long getLossAmount() {
|
||||
return lossAmount;
|
||||
}
|
||||
public void setCilosses(Long cilosses) {
|
||||
this.cilosses = cilosses;
|
||||
}
|
||||
|
||||
public Long getCilosses() {
|
||||
return cilosses;
|
||||
}
|
||||
public void setComponentUnit(String componentUnit) {
|
||||
this.componentUnit = componentUnit;
|
||||
}
|
||||
|
||||
public String getComponentUnit() {
|
||||
return componentUnit;
|
||||
}
|
||||
public void setComponentProFlag(String componentProFlag) {
|
||||
this.componentProFlag = componentProFlag;
|
||||
}
|
||||
|
||||
public String getComponentProFlag() {
|
||||
return componentProFlag;
|
||||
}
|
||||
public void setMsi(String msi) {
|
||||
this.msi = msi;
|
||||
}
|
||||
|
||||
public String getMsi() {
|
||||
return msi;
|
||||
}
|
||||
public void setSanka(String sanka) {
|
||||
this.sanka = sanka;
|
||||
}
|
||||
|
||||
public String getSanka() {
|
||||
return sanka;
|
||||
}
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
public void setAttr3(String attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public String getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("handle", getHandle())
|
||||
.append("bomCode", getBomCode())
|
||||
.append("bomName", getBomName())
|
||||
.append("site", getSite())
|
||||
.append("productCode", getProductCode())
|
||||
.append("productDescZh", getProductDescZh())
|
||||
.append("cumc", getCumc())
|
||||
.append("componentName", getComponentName())
|
||||
.append("component", getComponent())
|
||||
.append("bomHierarchy", getBomHierarchy())
|
||||
.append("projectNo", getProjectNo())
|
||||
.append("standardDosage", getStandardDosage())
|
||||
.append("lossRate", getLossRate())
|
||||
.append("lossAmount", getLossAmount())
|
||||
.append("cilosses", getCilosses())
|
||||
.append("componentUnit", getComponentUnit())
|
||||
.append("componentProFlag", getComponentProFlag())
|
||||
.append("msi", getMsi())
|
||||
.append("sanka", getSanka())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,231 @@
|
||||
package com.op.quality.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 检验任务详情对象 qc_check_task_detail
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
public class QcCheckTaskDetail extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private String recordId;
|
||||
|
||||
/** 归属任务编码 */
|
||||
@Excel(name = "归属任务编码")
|
||||
private String belongTo;
|
||||
|
||||
/** 检验规则编号 */
|
||||
@Excel(name = "检验规则编号")
|
||||
private String orderNum;
|
||||
|
||||
/** 检验规则名称 */
|
||||
@Excel(name = "检验规则名称")
|
||||
private String ruleName;
|
||||
|
||||
/** 检验规则属性 */
|
||||
@Excel(name = "检验规则属性")
|
||||
private String propertyCode;
|
||||
|
||||
/** 检验方式 */
|
||||
@Excel(name = "检验方式")
|
||||
private String checkMode;
|
||||
|
||||
/** 检验工具 */
|
||||
@Excel(name = "检验工具")
|
||||
private String checkTool;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unitCode;
|
||||
|
||||
/** 检验标准 */
|
||||
@Excel(name = "检验标准")
|
||||
private String checkStandard;
|
||||
|
||||
/** 实际值 */
|
||||
@Excel(name = "实际值")
|
||||
private BigDecimal actualValue;
|
||||
|
||||
/** Y合格N不合格 */
|
||||
@Excel(name = "Y合格N不合格")
|
||||
private String status;
|
||||
|
||||
/** 预留字段1 */
|
||||
@Excel(name = "预留字段1")
|
||||
private String attr1;
|
||||
|
||||
/** 预留字段2 */
|
||||
@Excel(name = "预留字段2")
|
||||
private String attr2;
|
||||
|
||||
/** 预留字段3 */
|
||||
@Excel(name = "预留字段3")
|
||||
private String attr3;
|
||||
|
||||
/** 预留字段4 */
|
||||
@Excel(name = "预留字段4")
|
||||
private String attr4;
|
||||
|
||||
/** 工厂编码 */
|
||||
@Excel(name = "工厂编码")
|
||||
private String factoryCode;
|
||||
|
||||
/** 删除标识1删除0正常 */
|
||||
private String delFlag;
|
||||
|
||||
public void setRecordId(String recordId) {
|
||||
this.recordId = recordId;
|
||||
}
|
||||
|
||||
public String getRecordId() {
|
||||
return recordId;
|
||||
}
|
||||
public void setBelongTo(String belongTo) {
|
||||
this.belongTo = belongTo;
|
||||
}
|
||||
|
||||
public String getBelongTo() {
|
||||
return belongTo;
|
||||
}
|
||||
public void setOrderNum(String orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
public void setRuleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public String getRuleName() {
|
||||
return ruleName;
|
||||
}
|
||||
public void setPropertyCode(String propertyCode) {
|
||||
this.propertyCode = propertyCode;
|
||||
}
|
||||
|
||||
public String getPropertyCode() {
|
||||
return propertyCode;
|
||||
}
|
||||
public void setCheckMode(String checkMode) {
|
||||
this.checkMode = checkMode;
|
||||
}
|
||||
|
||||
public String getCheckMode() {
|
||||
return checkMode;
|
||||
}
|
||||
public void setCheckTool(String checkTool) {
|
||||
this.checkTool = checkTool;
|
||||
}
|
||||
|
||||
public String getCheckTool() {
|
||||
return checkTool;
|
||||
}
|
||||
public void setUnitCode(String unitCode) {
|
||||
this.unitCode = unitCode;
|
||||
}
|
||||
|
||||
public String getUnitCode() {
|
||||
return unitCode;
|
||||
}
|
||||
public void setCheckStandard(String checkStandard) {
|
||||
this.checkStandard = checkStandard;
|
||||
}
|
||||
|
||||
public String getCheckStandard() {
|
||||
return checkStandard;
|
||||
}
|
||||
public void setActualValue(BigDecimal actualValue) {
|
||||
this.actualValue = actualValue;
|
||||
}
|
||||
|
||||
public BigDecimal getActualValue() {
|
||||
return actualValue;
|
||||
}
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
public void setAttr3(String attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public String getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
public void setAttr4(String attr4) {
|
||||
this.attr4 = attr4;
|
||||
}
|
||||
|
||||
public String getAttr4() {
|
||||
return attr4;
|
||||
}
|
||||
public void setFactoryCode(String factoryCode) {
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode() {
|
||||
return factoryCode;
|
||||
}
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("recordId", getRecordId())
|
||||
.append("belongTo", getBelongTo())
|
||||
.append("orderNum", getOrderNum())
|
||||
.append("ruleName", getRuleName())
|
||||
.append("propertyCode", getPropertyCode())
|
||||
.append("checkMode", getCheckMode())
|
||||
.append("checkTool", getCheckTool())
|
||||
.append("unitCode", getUnitCode())
|
||||
.append("checkStandard", getCheckStandard())
|
||||
.append("actualValue", getActualValue())
|
||||
.append("status", getStatus())
|
||||
.append("remark", getRemark())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("attr4", getAttr4())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("factoryCode", getFactoryCode())
|
||||
.append("delFlag", getDelFlag())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,318 @@
|
||||
package com.op.quality.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 来料检验对象 qc_check_task_income
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
public class QcCheckTaskIncome extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private String recordId;
|
||||
|
||||
/** 检验任务编号 */
|
||||
@Excel(name = "检验任务编号")
|
||||
private String checkNo;
|
||||
|
||||
/** 来料批次号 */
|
||||
@Excel(name = "来料批次号")
|
||||
private String incomeBatchNo;
|
||||
|
||||
/** 订单号 */
|
||||
@Excel(name = "订单号")
|
||||
private String orderNo;
|
||||
|
||||
/** 物料号 */
|
||||
@Excel(name = "物料号")
|
||||
private String materialCode;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 收货数量 */
|
||||
@Excel(name = "收货数量")
|
||||
private BigDecimal quality;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 供应商编码 */
|
||||
@Excel(name = "供应商编码")
|
||||
private String supplierCode;
|
||||
|
||||
/** 供应商名称 */
|
||||
@Excel(name = "供应商名称")
|
||||
private String supplierName;
|
||||
|
||||
/** 来料时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "来料时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date incomeTime;
|
||||
|
||||
/** 检测地点 */
|
||||
@Excel(name = "检测地点")
|
||||
private String checkLoc;
|
||||
|
||||
/** 检测状态 */
|
||||
@Excel(name = "检测状态")
|
||||
private String checkStatus;
|
||||
|
||||
/** 检测人工号 */
|
||||
@Excel(name = "检测人工号")
|
||||
private String checkManCode;
|
||||
|
||||
/** 检测人姓名 */
|
||||
@Excel(name = "检测人姓名")
|
||||
private String checkManName;
|
||||
|
||||
/** 检验时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date checkTime;
|
||||
|
||||
/** 检验结果Y合格 */
|
||||
@Excel(name = "检验结果Y合格")
|
||||
private String checkResult;
|
||||
|
||||
/** 是否启用1启用0停用 */
|
||||
@Excel(name = "是否启用1启用0停用")
|
||||
private String status;
|
||||
|
||||
/** 预留字段1 */
|
||||
@Excel(name = "预留字段1")
|
||||
private String attr1;
|
||||
|
||||
/** 预留字段2 */
|
||||
@Excel(name = "预留字段2")
|
||||
private String attr2;
|
||||
|
||||
/** 预留字段3 */
|
||||
@Excel(name = "预留字段3")
|
||||
private String attr3;
|
||||
|
||||
/** 预留字段4 */
|
||||
@Excel(name = "预留字段4")
|
||||
private String attr4;
|
||||
|
||||
/** 工厂编码 */
|
||||
@Excel(name = "工厂编码")
|
||||
private String factoryCode;
|
||||
|
||||
/** 删除标识1删除0正常 */
|
||||
private String delFlag;
|
||||
|
||||
public void setRecordId(String recordId) {
|
||||
this.recordId = recordId;
|
||||
}
|
||||
|
||||
public String getRecordId() {
|
||||
return recordId;
|
||||
}
|
||||
public void setCheckNo(String checkNo) {
|
||||
this.checkNo = checkNo;
|
||||
}
|
||||
|
||||
public String getCheckNo() {
|
||||
return checkNo;
|
||||
}
|
||||
public void setIncomeBatchNo(String incomeBatchNo) {
|
||||
this.incomeBatchNo = incomeBatchNo;
|
||||
}
|
||||
|
||||
public String getIncomeBatchNo() {
|
||||
return incomeBatchNo;
|
||||
}
|
||||
public void setOrderNo(String orderNo) {
|
||||
this.orderNo = orderNo;
|
||||
}
|
||||
|
||||
public String getOrderNo() {
|
||||
return orderNo;
|
||||
}
|
||||
public void setMaterialCode(String materialCode) {
|
||||
this.materialCode = materialCode;
|
||||
}
|
||||
|
||||
public String getMaterialCode() {
|
||||
return materialCode;
|
||||
}
|
||||
public void setMaterialName(String materialName) {
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName() {
|
||||
return materialName;
|
||||
}
|
||||
public void setQuality(BigDecimal quality) {
|
||||
this.quality = quality;
|
||||
}
|
||||
|
||||
public BigDecimal getQuality() {
|
||||
return quality;
|
||||
}
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
public void setSupplierCode(String supplierCode) {
|
||||
this.supplierCode = supplierCode;
|
||||
}
|
||||
|
||||
public String getSupplierCode() {
|
||||
return supplierCode;
|
||||
}
|
||||
public void setSupplierName(String supplierName) {
|
||||
this.supplierName = supplierName;
|
||||
}
|
||||
|
||||
public String getSupplierName() {
|
||||
return supplierName;
|
||||
}
|
||||
public void setIncomeTime(Date incomeTime) {
|
||||
this.incomeTime = incomeTime;
|
||||
}
|
||||
|
||||
public Date getIncomeTime() {
|
||||
return incomeTime;
|
||||
}
|
||||
public void setCheckLoc(String checkLoc) {
|
||||
this.checkLoc = checkLoc;
|
||||
}
|
||||
|
||||
public String getCheckLoc() {
|
||||
return checkLoc;
|
||||
}
|
||||
public void setCheckStatus(String checkStatus) {
|
||||
this.checkStatus = checkStatus;
|
||||
}
|
||||
|
||||
public String getCheckStatus() {
|
||||
return checkStatus;
|
||||
}
|
||||
public void setCheckManCode(String checkManCode) {
|
||||
this.checkManCode = checkManCode;
|
||||
}
|
||||
|
||||
public String getCheckManCode() {
|
||||
return checkManCode;
|
||||
}
|
||||
public void setCheckManName(String checkManName) {
|
||||
this.checkManName = checkManName;
|
||||
}
|
||||
|
||||
public String getCheckManName() {
|
||||
return checkManName;
|
||||
}
|
||||
public void setCheckTime(Date checkTime) {
|
||||
this.checkTime = checkTime;
|
||||
}
|
||||
|
||||
public Date getCheckTime() {
|
||||
return checkTime;
|
||||
}
|
||||
public void setCheckResult(String checkResult) {
|
||||
this.checkResult = checkResult;
|
||||
}
|
||||
|
||||
public String getCheckResult() {
|
||||
return checkResult;
|
||||
}
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
public void setAttr3(String attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public String getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
public void setAttr4(String attr4) {
|
||||
this.attr4 = attr4;
|
||||
}
|
||||
|
||||
public String getAttr4() {
|
||||
return attr4;
|
||||
}
|
||||
public void setFactoryCode(String factoryCode) {
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode() {
|
||||
return factoryCode;
|
||||
}
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("recordId", getRecordId())
|
||||
.append("checkNo", getCheckNo())
|
||||
.append("incomeBatchNo", getIncomeBatchNo())
|
||||
.append("orderNo", getOrderNo())
|
||||
.append("materialCode", getMaterialCode())
|
||||
.append("materialName", getMaterialName())
|
||||
.append("quality", getQuality())
|
||||
.append("unit", getUnit())
|
||||
.append("supplierCode", getSupplierCode())
|
||||
.append("supplierName", getSupplierName())
|
||||
.append("incomeTime", getIncomeTime())
|
||||
.append("checkLoc", getCheckLoc())
|
||||
.append("checkStatus", getCheckStatus())
|
||||
.append("checkManCode", getCheckManCode())
|
||||
.append("checkManName", getCheckManName())
|
||||
.append("checkTime", getCheckTime())
|
||||
.append("checkResult", getCheckResult())
|
||||
.append("status", getStatus())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("attr4", getAttr4())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("factoryCode", getFactoryCode())
|
||||
.append("delFlag", getDelFlag())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,318 @@
|
||||
package com.op.quality.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 生产过程检验任务对象 qc_check_task_produce
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
public class QcCheckTaskProduce extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private String recordId;
|
||||
|
||||
/** 检验任务编号 */
|
||||
@Excel(name = "检验任务编号")
|
||||
private String checkNo;
|
||||
|
||||
/** 批次号 */
|
||||
@Excel(name = "批次号")
|
||||
private String batchNo;
|
||||
|
||||
/** 订单号 */
|
||||
@Excel(name = "订单号")
|
||||
private String orderNo;
|
||||
|
||||
/** 物料号 */
|
||||
@Excel(name = "物料号")
|
||||
private String materialCode;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 数量 */
|
||||
@Excel(name = "数量")
|
||||
private BigDecimal quality;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 所属车间编码 */
|
||||
@Excel(name = "所属车间编码")
|
||||
private String carCode;
|
||||
|
||||
/** 所属车间名称 */
|
||||
@Excel(name = "所属车间名称")
|
||||
private String carName;
|
||||
|
||||
/** 生产时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "生产时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date produceDate;
|
||||
|
||||
/** 检测地点 */
|
||||
@Excel(name = "检测地点")
|
||||
private String checkLoc;
|
||||
|
||||
/** 检测状态 */
|
||||
@Excel(name = "检测状态")
|
||||
private String checkStatus;
|
||||
|
||||
/** 检测人工号 */
|
||||
@Excel(name = "检测人工号")
|
||||
private String checkManCode;
|
||||
|
||||
/** 检测人姓名 */
|
||||
@Excel(name = "检测人姓名")
|
||||
private String checkManName;
|
||||
|
||||
/** 检验时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date checkTime;
|
||||
|
||||
/** 检验结果Y合格 */
|
||||
@Excel(name = "检验结果Y合格")
|
||||
private String checkResult;
|
||||
|
||||
/** 是否启用1启用0停用 */
|
||||
@Excel(name = "是否启用1启用0停用")
|
||||
private String status;
|
||||
|
||||
/** 预留字段1 */
|
||||
@Excel(name = "预留字段1")
|
||||
private String attr1;
|
||||
|
||||
/** 预留字段2 */
|
||||
@Excel(name = "预留字段2")
|
||||
private String attr2;
|
||||
|
||||
/** 预留字段3 */
|
||||
@Excel(name = "预留字段3")
|
||||
private String attr3;
|
||||
|
||||
/** 预留字段4 */
|
||||
@Excel(name = "预留字段4")
|
||||
private String attr4;
|
||||
|
||||
/** 工厂编码 */
|
||||
@Excel(name = "工厂编码")
|
||||
private String factoryCode;
|
||||
|
||||
/** 删除标识1删除0正常 */
|
||||
private String delFlag;
|
||||
|
||||
public void setRecordId(String recordId) {
|
||||
this.recordId = recordId;
|
||||
}
|
||||
|
||||
public String getRecordId() {
|
||||
return recordId;
|
||||
}
|
||||
public void setCheckNo(String checkNo) {
|
||||
this.checkNo = checkNo;
|
||||
}
|
||||
|
||||
public String getCheckNo() {
|
||||
return checkNo;
|
||||
}
|
||||
public void setBatchNo(String batchNo) {
|
||||
this.batchNo = batchNo;
|
||||
}
|
||||
|
||||
public String getBatchNo() {
|
||||
return batchNo;
|
||||
}
|
||||
public void setOrderNo(String orderNo) {
|
||||
this.orderNo = orderNo;
|
||||
}
|
||||
|
||||
public String getOrderNo() {
|
||||
return orderNo;
|
||||
}
|
||||
public void setMaterialCode(String materialCode) {
|
||||
this.materialCode = materialCode;
|
||||
}
|
||||
|
||||
public String getMaterialCode() {
|
||||
return materialCode;
|
||||
}
|
||||
public void setMaterialName(String materialName) {
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName() {
|
||||
return materialName;
|
||||
}
|
||||
public void setQuality(BigDecimal quality) {
|
||||
this.quality = quality;
|
||||
}
|
||||
|
||||
public BigDecimal getQuality() {
|
||||
return quality;
|
||||
}
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
public void setCarCode(String carCode) {
|
||||
this.carCode = carCode;
|
||||
}
|
||||
|
||||
public String getCarCode() {
|
||||
return carCode;
|
||||
}
|
||||
public void setCarName(String carName) {
|
||||
this.carName = carName;
|
||||
}
|
||||
|
||||
public String getCarName() {
|
||||
return carName;
|
||||
}
|
||||
public void setProduceDate(Date produceDate) {
|
||||
this.produceDate = produceDate;
|
||||
}
|
||||
|
||||
public Date getProduceDate() {
|
||||
return produceDate;
|
||||
}
|
||||
public void setCheckLoc(String checkLoc) {
|
||||
this.checkLoc = checkLoc;
|
||||
}
|
||||
|
||||
public String getCheckLoc() {
|
||||
return checkLoc;
|
||||
}
|
||||
public void setCheckStatus(String checkStatus) {
|
||||
this.checkStatus = checkStatus;
|
||||
}
|
||||
|
||||
public String getCheckStatus() {
|
||||
return checkStatus;
|
||||
}
|
||||
public void setCheckManCode(String checkManCode) {
|
||||
this.checkManCode = checkManCode;
|
||||
}
|
||||
|
||||
public String getCheckManCode() {
|
||||
return checkManCode;
|
||||
}
|
||||
public void setCheckManName(String checkManName) {
|
||||
this.checkManName = checkManName;
|
||||
}
|
||||
|
||||
public String getCheckManName() {
|
||||
return checkManName;
|
||||
}
|
||||
public void setCheckTime(Date checkTime) {
|
||||
this.checkTime = checkTime;
|
||||
}
|
||||
|
||||
public Date getCheckTime() {
|
||||
return checkTime;
|
||||
}
|
||||
public void setCheckResult(String checkResult) {
|
||||
this.checkResult = checkResult;
|
||||
}
|
||||
|
||||
public String getCheckResult() {
|
||||
return checkResult;
|
||||
}
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
public void setAttr3(String attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public String getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
public void setAttr4(String attr4) {
|
||||
this.attr4 = attr4;
|
||||
}
|
||||
|
||||
public String getAttr4() {
|
||||
return attr4;
|
||||
}
|
||||
public void setFactoryCode(String factoryCode) {
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode() {
|
||||
return factoryCode;
|
||||
}
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("recordId", getRecordId())
|
||||
.append("checkNo", getCheckNo())
|
||||
.append("batchNo", getBatchNo())
|
||||
.append("orderNo", getOrderNo())
|
||||
.append("materialCode", getMaterialCode())
|
||||
.append("materialName", getMaterialName())
|
||||
.append("quality", getQuality())
|
||||
.append("unit", getUnit())
|
||||
.append("carCode", getCarCode())
|
||||
.append("carName", getCarName())
|
||||
.append("produceDate", getProduceDate())
|
||||
.append("checkLoc", getCheckLoc())
|
||||
.append("checkStatus", getCheckStatus())
|
||||
.append("checkManCode", getCheckManCode())
|
||||
.append("checkManName", getCheckManName())
|
||||
.append("checkTime", getCheckTime())
|
||||
.append("checkResult", getCheckResult())
|
||||
.append("status", getStatus())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("attr4", getAttr4())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("factoryCode", getFactoryCode())
|
||||
.append("delFlag", getDelFlag())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,318 @@
|
||||
package com.op.quality.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 成品入库检验任务对象 qc_check_task_warehousing
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
public class QcCheckTaskWarehousing extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private String recordId;
|
||||
|
||||
/** 检验任务编号 */
|
||||
@Excel(name = "检验任务编号")
|
||||
private String checkNo;
|
||||
|
||||
/** 批次号 */
|
||||
@Excel(name = "批次号")
|
||||
private String batchNo;
|
||||
|
||||
/** 订单号 */
|
||||
@Excel(name = "订单号")
|
||||
private String orderNo;
|
||||
|
||||
/** 物料号 */
|
||||
@Excel(name = "物料号")
|
||||
private String materialCode;
|
||||
|
||||
/** 物料名称 */
|
||||
@Excel(name = "物料名称")
|
||||
private String materialName;
|
||||
|
||||
/** 数量 */
|
||||
@Excel(name = "数量")
|
||||
private BigDecimal quality;
|
||||
|
||||
/** 单位 */
|
||||
@Excel(name = "单位")
|
||||
private String unit;
|
||||
|
||||
/** 供应商编码 */
|
||||
@Excel(name = "供应商编码")
|
||||
private String supplierCode;
|
||||
|
||||
/** 供应商名称 */
|
||||
@Excel(name = "供应商名称")
|
||||
private String supplierName;
|
||||
|
||||
/** 来料时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "来料时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date incomeTime;
|
||||
|
||||
/** 检测地点 */
|
||||
@Excel(name = "检测地点")
|
||||
private String checkLoc;
|
||||
|
||||
/** 检测状态 */
|
||||
@Excel(name = "检测状态")
|
||||
private String checkStatus;
|
||||
|
||||
/** 检测人工号 */
|
||||
@Excel(name = "检测人工号")
|
||||
private String checkManCode;
|
||||
|
||||
/** 检测人姓名 */
|
||||
@Excel(name = "检测人姓名")
|
||||
private String checkManName;
|
||||
|
||||
/** 检验时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date checkTime;
|
||||
|
||||
/** 检验结果Y合格 */
|
||||
@Excel(name = "检验结果Y合格")
|
||||
private String checkResult;
|
||||
|
||||
/** 是否启用1启用0停用 */
|
||||
@Excel(name = "是否启用1启用0停用")
|
||||
private String status;
|
||||
|
||||
/** 预留字段1 */
|
||||
@Excel(name = "预留字段1")
|
||||
private String attr1;
|
||||
|
||||
/** 预留字段2 */
|
||||
@Excel(name = "预留字段2")
|
||||
private String attr2;
|
||||
|
||||
/** 预留字段3 */
|
||||
@Excel(name = "预留字段3")
|
||||
private String attr3;
|
||||
|
||||
/** 预留字段4 */
|
||||
@Excel(name = "预留字段4")
|
||||
private String attr4;
|
||||
|
||||
/** 工厂编码 */
|
||||
@Excel(name = "工厂编码")
|
||||
private String factoryCode;
|
||||
|
||||
/** 删除标识1删除0正常 */
|
||||
private String delFlag;
|
||||
|
||||
public void setRecordId(String recordId) {
|
||||
this.recordId = recordId;
|
||||
}
|
||||
|
||||
public String getRecordId() {
|
||||
return recordId;
|
||||
}
|
||||
public void setCheckNo(String checkNo) {
|
||||
this.checkNo = checkNo;
|
||||
}
|
||||
|
||||
public String getCheckNo() {
|
||||
return checkNo;
|
||||
}
|
||||
public void setBatchNo(String batchNo) {
|
||||
this.batchNo = batchNo;
|
||||
}
|
||||
|
||||
public String getBatchNo() {
|
||||
return batchNo;
|
||||
}
|
||||
public void setOrderNo(String orderNo) {
|
||||
this.orderNo = orderNo;
|
||||
}
|
||||
|
||||
public String getOrderNo() {
|
||||
return orderNo;
|
||||
}
|
||||
public void setMaterialCode(String materialCode) {
|
||||
this.materialCode = materialCode;
|
||||
}
|
||||
|
||||
public String getMaterialCode() {
|
||||
return materialCode;
|
||||
}
|
||||
public void setMaterialName(String materialName) {
|
||||
this.materialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialName() {
|
||||
return materialName;
|
||||
}
|
||||
public void setQuality(BigDecimal quality) {
|
||||
this.quality = quality;
|
||||
}
|
||||
|
||||
public BigDecimal getQuality() {
|
||||
return quality;
|
||||
}
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
public void setSupplierCode(String supplierCode) {
|
||||
this.supplierCode = supplierCode;
|
||||
}
|
||||
|
||||
public String getSupplierCode() {
|
||||
return supplierCode;
|
||||
}
|
||||
public void setSupplierName(String supplierName) {
|
||||
this.supplierName = supplierName;
|
||||
}
|
||||
|
||||
public String getSupplierName() {
|
||||
return supplierName;
|
||||
}
|
||||
public void setIncomeTime(Date incomeTime) {
|
||||
this.incomeTime = incomeTime;
|
||||
}
|
||||
|
||||
public Date getIncomeTime() {
|
||||
return incomeTime;
|
||||
}
|
||||
public void setCheckLoc(String checkLoc) {
|
||||
this.checkLoc = checkLoc;
|
||||
}
|
||||
|
||||
public String getCheckLoc() {
|
||||
return checkLoc;
|
||||
}
|
||||
public void setCheckStatus(String checkStatus) {
|
||||
this.checkStatus = checkStatus;
|
||||
}
|
||||
|
||||
public String getCheckStatus() {
|
||||
return checkStatus;
|
||||
}
|
||||
public void setCheckManCode(String checkManCode) {
|
||||
this.checkManCode = checkManCode;
|
||||
}
|
||||
|
||||
public String getCheckManCode() {
|
||||
return checkManCode;
|
||||
}
|
||||
public void setCheckManName(String checkManName) {
|
||||
this.checkManName = checkManName;
|
||||
}
|
||||
|
||||
public String getCheckManName() {
|
||||
return checkManName;
|
||||
}
|
||||
public void setCheckTime(Date checkTime) {
|
||||
this.checkTime = checkTime;
|
||||
}
|
||||
|
||||
public Date getCheckTime() {
|
||||
return checkTime;
|
||||
}
|
||||
public void setCheckResult(String checkResult) {
|
||||
this.checkResult = checkResult;
|
||||
}
|
||||
|
||||
public String getCheckResult() {
|
||||
return checkResult;
|
||||
}
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
public void setAttr3(String attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public String getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
public void setAttr4(String attr4) {
|
||||
this.attr4 = attr4;
|
||||
}
|
||||
|
||||
public String getAttr4() {
|
||||
return attr4;
|
||||
}
|
||||
public void setFactoryCode(String factoryCode) {
|
||||
this.factoryCode = factoryCode;
|
||||
}
|
||||
|
||||
public String getFactoryCode() {
|
||||
return factoryCode;
|
||||
}
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("recordId", getRecordId())
|
||||
.append("checkNo", getCheckNo())
|
||||
.append("batchNo", getBatchNo())
|
||||
.append("orderNo", getOrderNo())
|
||||
.append("materialCode", getMaterialCode())
|
||||
.append("materialName", getMaterialName())
|
||||
.append("quality", getQuality())
|
||||
.append("unit", getUnit())
|
||||
.append("supplierCode", getSupplierCode())
|
||||
.append("supplierName", getSupplierName())
|
||||
.append("incomeTime", getIncomeTime())
|
||||
.append("checkLoc", getCheckLoc())
|
||||
.append("checkStatus", getCheckStatus())
|
||||
.append("checkManCode", getCheckManCode())
|
||||
.append("checkManName", getCheckManName())
|
||||
.append("checkTime", getCheckTime())
|
||||
.append("checkResult", getCheckResult())
|
||||
.append("status", getStatus())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("attr4", getAttr4())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("factoryCode", getFactoryCode())
|
||||
.append("delFlag", getDelFlag())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.quality.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.quality.domain.QcCheckTaskDetail;
|
||||
|
||||
/**
|
||||
* 检验任务详情Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
public interface QcCheckTaskDetailMapper {
|
||||
/**
|
||||
* 查询检验任务详情
|
||||
*
|
||||
* @param recordId 检验任务详情主键
|
||||
* @return 检验任务详情
|
||||
*/
|
||||
public QcCheckTaskDetail selectQcCheckTaskDetailByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 查询检验任务详情列表
|
||||
*
|
||||
* @param qcCheckTaskDetail 检验任务详情
|
||||
* @return 检验任务详情集合
|
||||
*/
|
||||
public List<QcCheckTaskDetail> selectQcCheckTaskDetailList(QcCheckTaskDetail qcCheckTaskDetail);
|
||||
|
||||
/**
|
||||
* 新增检验任务详情
|
||||
*
|
||||
* @param qcCheckTaskDetail 检验任务详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertQcCheckTaskDetail(QcCheckTaskDetail qcCheckTaskDetail);
|
||||
|
||||
/**
|
||||
* 修改检验任务详情
|
||||
*
|
||||
* @param qcCheckTaskDetail 检验任务详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateQcCheckTaskDetail(QcCheckTaskDetail qcCheckTaskDetail);
|
||||
|
||||
/**
|
||||
* 删除检验任务详情
|
||||
*
|
||||
* @param recordId 检验任务详情主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskDetailByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 批量删除检验任务详情
|
||||
*
|
||||
* @param recordIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskDetailByRecordIds(String[] recordIds);
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package com.op.quality.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.quality.domain.QcBomComponent;
|
||||
import com.op.quality.domain.QcCheckTaskIncome;
|
||||
|
||||
/**
|
||||
* 来料检验Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
public interface QcCheckTaskIncomeMapper {
|
||||
/**
|
||||
* 查询来料检验
|
||||
*
|
||||
* @param recordId 来料检验主键
|
||||
* @return 来料检验
|
||||
*/
|
||||
public QcCheckTaskIncome selectQcCheckTaskIncomeByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 查询来料检验列表
|
||||
*
|
||||
* @param qcCheckTaskIncome 来料检验
|
||||
* @return 来料检验集合
|
||||
*/
|
||||
public List<QcCheckTaskIncome> selectQcCheckTaskIncomeList(QcCheckTaskIncome qcCheckTaskIncome);
|
||||
|
||||
/**
|
||||
* 新增来料检验
|
||||
*
|
||||
* @param qcCheckTaskIncome 来料检验
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertQcCheckTaskIncome(QcCheckTaskIncome qcCheckTaskIncome);
|
||||
|
||||
/**
|
||||
* 修改来料检验
|
||||
*
|
||||
* @param qcCheckTaskIncome 来料检验
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateQcCheckTaskIncome(QcCheckTaskIncome qcCheckTaskIncome);
|
||||
|
||||
/**
|
||||
* 删除来料检验
|
||||
*
|
||||
* @param recordId 来料检验主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskIncomeByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 批量删除来料检验
|
||||
*
|
||||
* @param recordIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskIncomeByRecordIds(String[] recordIds);
|
||||
|
||||
public List<QcBomComponent> getQcListBom(QcBomComponent bomComponent);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.quality.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.quality.domain.QcCheckTaskProduce;
|
||||
|
||||
/**
|
||||
* 生产过程检验任务Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
public interface QcCheckTaskProduceMapper {
|
||||
/**
|
||||
* 查询生产过程检验任务
|
||||
*
|
||||
* @param recordId 生产过程检验任务主键
|
||||
* @return 生产过程检验任务
|
||||
*/
|
||||
public QcCheckTaskProduce selectQcCheckTaskProduceByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 查询生产过程检验任务列表
|
||||
*
|
||||
* @param qcCheckTaskProduce 生产过程检验任务
|
||||
* @return 生产过程检验任务集合
|
||||
*/
|
||||
public List<QcCheckTaskProduce> selectQcCheckTaskProduceList(QcCheckTaskProduce qcCheckTaskProduce);
|
||||
|
||||
/**
|
||||
* 新增生产过程检验任务
|
||||
*
|
||||
* @param qcCheckTaskProduce 生产过程检验任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertQcCheckTaskProduce(QcCheckTaskProduce qcCheckTaskProduce);
|
||||
|
||||
/**
|
||||
* 修改生产过程检验任务
|
||||
*
|
||||
* @param qcCheckTaskProduce 生产过程检验任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateQcCheckTaskProduce(QcCheckTaskProduce qcCheckTaskProduce);
|
||||
|
||||
/**
|
||||
* 删除生产过程检验任务
|
||||
*
|
||||
* @param recordId 生产过程检验任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskProduceByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 批量删除生产过程检验任务
|
||||
*
|
||||
* @param recordIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskProduceByRecordIds(String[] recordIds);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.op.quality.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.quality.domain.QcCheckTaskWarehousing;
|
||||
|
||||
/**
|
||||
* 成品入库检验任务Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
public interface QcCheckTaskWarehousingMapper {
|
||||
/**
|
||||
* 查询成品入库检验任务
|
||||
*
|
||||
* @param recordId 成品入库检验任务主键
|
||||
* @return 成品入库检验任务
|
||||
*/
|
||||
public QcCheckTaskWarehousing selectQcCheckTaskWarehousingByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 查询成品入库检验任务列表
|
||||
*
|
||||
* @param qcCheckTaskWarehousing 成品入库检验任务
|
||||
* @return 成品入库检验任务集合
|
||||
*/
|
||||
public List<QcCheckTaskWarehousing> selectQcCheckTaskWarehousingList(QcCheckTaskWarehousing qcCheckTaskWarehousing);
|
||||
|
||||
/**
|
||||
* 新增成品入库检验任务
|
||||
*
|
||||
* @param qcCheckTaskWarehousing 成品入库检验任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertQcCheckTaskWarehousing(QcCheckTaskWarehousing qcCheckTaskWarehousing);
|
||||
|
||||
/**
|
||||
* 修改成品入库检验任务
|
||||
*
|
||||
* @param qcCheckTaskWarehousing 成品入库检验任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateQcCheckTaskWarehousing(QcCheckTaskWarehousing qcCheckTaskWarehousing);
|
||||
|
||||
/**
|
||||
* 删除成品入库检验任务
|
||||
*
|
||||
* @param recordId 成品入库检验任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskWarehousingByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 批量删除成品入库检验任务
|
||||
*
|
||||
* @param recordIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskWarehousingByRecordIds(String[] recordIds);
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.op.quality.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.op.quality.domain.QcCheckTaskDetail;
|
||||
|
||||
/**
|
||||
* 检验任务详情Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
public interface IQcCheckTaskDetailService {
|
||||
/**
|
||||
* 查询检验任务详情
|
||||
*
|
||||
* @param recordId 检验任务详情主键
|
||||
* @return 检验任务详情
|
||||
*/
|
||||
public QcCheckTaskDetail selectQcCheckTaskDetailByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 查询检验任务详情列表
|
||||
*
|
||||
* @param qcCheckTaskDetail 检验任务详情
|
||||
* @return 检验任务详情集合
|
||||
*/
|
||||
public List<QcCheckTaskDetail> selectQcCheckTaskDetailList(QcCheckTaskDetail qcCheckTaskDetail);
|
||||
|
||||
/**
|
||||
* 新增检验任务详情
|
||||
*
|
||||
* @param qcCheckTaskDetail 检验任务详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertQcCheckTaskDetail(QcCheckTaskDetail qcCheckTaskDetail);
|
||||
|
||||
/**
|
||||
* 修改检验任务详情
|
||||
*
|
||||
* @param qcCheckTaskDetail 检验任务详情
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateQcCheckTaskDetail(QcCheckTaskDetail qcCheckTaskDetail);
|
||||
|
||||
/**
|
||||
* 批量删除检验任务详情
|
||||
*
|
||||
* @param recordIds 需要删除的检验任务详情主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskDetailByRecordIds(String[] recordIds);
|
||||
|
||||
/**
|
||||
* 删除检验任务详情信息
|
||||
*
|
||||
* @param recordId 检验任务详情主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskDetailByRecordId(String recordId);
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package com.op.quality.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.op.quality.domain.QcBomComponent;
|
||||
import com.op.quality.domain.QcCheckTaskIncome;
|
||||
|
||||
/**
|
||||
* 来料检验Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
public interface IQcCheckTaskIncomeService {
|
||||
/**
|
||||
* 查询来料检验
|
||||
*
|
||||
* @param recordId 来料检验主键
|
||||
* @return 来料检验
|
||||
*/
|
||||
public QcCheckTaskIncome selectQcCheckTaskIncomeByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 查询来料检验列表
|
||||
*
|
||||
* @param qcCheckTaskIncome 来料检验
|
||||
* @return 来料检验集合
|
||||
*/
|
||||
public List<QcCheckTaskIncome> selectQcCheckTaskIncomeList(QcCheckTaskIncome qcCheckTaskIncome);
|
||||
|
||||
/**
|
||||
* 新增来料检验
|
||||
*
|
||||
* @param qcCheckTaskIncome 来料检验
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertQcCheckTaskIncome(QcCheckTaskIncome qcCheckTaskIncome);
|
||||
|
||||
/**
|
||||
* 修改来料检验
|
||||
*
|
||||
* @param qcCheckTaskIncome 来料检验
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateQcCheckTaskIncome(QcCheckTaskIncome qcCheckTaskIncome);
|
||||
|
||||
/**
|
||||
* 批量删除来料检验
|
||||
*
|
||||
* @param recordIds 需要删除的来料检验主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskIncomeByRecordIds(String[] recordIds);
|
||||
|
||||
/**
|
||||
* 删除来料检验信息
|
||||
*
|
||||
* @param recordId 来料检验主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskIncomeByRecordId(String recordId);
|
||||
|
||||
public List<QcBomComponent> getQcListBom(com.op.quality.domain.QcBomComponent bomComponent);
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.op.quality.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.op.quality.domain.QcCheckTaskProduce;
|
||||
|
||||
/**
|
||||
* 生产过程检验任务Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
public interface IQcCheckTaskProduceService {
|
||||
/**
|
||||
* 查询生产过程检验任务
|
||||
*
|
||||
* @param recordId 生产过程检验任务主键
|
||||
* @return 生产过程检验任务
|
||||
*/
|
||||
public QcCheckTaskProduce selectQcCheckTaskProduceByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 查询生产过程检验任务列表
|
||||
*
|
||||
* @param qcCheckTaskProduce 生产过程检验任务
|
||||
* @return 生产过程检验任务集合
|
||||
*/
|
||||
public List<QcCheckTaskProduce> selectQcCheckTaskProduceList(QcCheckTaskProduce qcCheckTaskProduce);
|
||||
|
||||
/**
|
||||
* 新增生产过程检验任务
|
||||
*
|
||||
* @param qcCheckTaskProduce 生产过程检验任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertQcCheckTaskProduce(QcCheckTaskProduce qcCheckTaskProduce);
|
||||
|
||||
/**
|
||||
* 修改生产过程检验任务
|
||||
*
|
||||
* @param qcCheckTaskProduce 生产过程检验任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateQcCheckTaskProduce(QcCheckTaskProduce qcCheckTaskProduce);
|
||||
|
||||
/**
|
||||
* 批量删除生产过程检验任务
|
||||
*
|
||||
* @param recordIds 需要删除的生产过程检验任务主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskProduceByRecordIds(String[] recordIds);
|
||||
|
||||
/**
|
||||
* 删除生产过程检验任务信息
|
||||
*
|
||||
* @param recordId 生产过程检验任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskProduceByRecordId(String recordId);
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package com.op.quality.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.op.quality.domain.QcCheckTaskWarehousing;
|
||||
|
||||
/**
|
||||
* 成品入库检验任务Service接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
public interface IQcCheckTaskWarehousingService {
|
||||
/**
|
||||
* 查询成品入库检验任务
|
||||
*
|
||||
* @param recordId 成品入库检验任务主键
|
||||
* @return 成品入库检验任务
|
||||
*/
|
||||
public QcCheckTaskWarehousing selectQcCheckTaskWarehousingByRecordId(String recordId);
|
||||
|
||||
/**
|
||||
* 查询成品入库检验任务列表
|
||||
*
|
||||
* @param qcCheckTaskWarehousing 成品入库检验任务
|
||||
* @return 成品入库检验任务集合
|
||||
*/
|
||||
public List<QcCheckTaskWarehousing> selectQcCheckTaskWarehousingList(QcCheckTaskWarehousing qcCheckTaskWarehousing);
|
||||
|
||||
/**
|
||||
* 新增成品入库检验任务
|
||||
*
|
||||
* @param qcCheckTaskWarehousing 成品入库检验任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertQcCheckTaskWarehousing(QcCheckTaskWarehousing qcCheckTaskWarehousing);
|
||||
|
||||
/**
|
||||
* 修改成品入库检验任务
|
||||
*
|
||||
* @param qcCheckTaskWarehousing 成品入库检验任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateQcCheckTaskWarehousing(QcCheckTaskWarehousing qcCheckTaskWarehousing);
|
||||
|
||||
/**
|
||||
* 批量删除成品入库检验任务
|
||||
*
|
||||
* @param recordIds 需要删除的成品入库检验任务主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskWarehousingByRecordIds(String[] recordIds);
|
||||
|
||||
/**
|
||||
* 删除成品入库检验任务信息
|
||||
*
|
||||
* @param recordId 成品入库检验任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteQcCheckTaskWarehousingByRecordId(String recordId);
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package com.op.quality.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.op.quality.mapper.QcCheckTaskDetailMapper;
|
||||
import com.op.quality.domain.QcCheckTaskDetail;
|
||||
import com.op.quality.service.IQcCheckTaskDetailService;
|
||||
|
||||
/**
|
||||
* 检验任务详情Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
@Service
|
||||
public class QcCheckTaskDetailServiceImpl implements IQcCheckTaskDetailService {
|
||||
@Autowired
|
||||
private QcCheckTaskDetailMapper qcCheckTaskDetailMapper;
|
||||
|
||||
/**
|
||||
* 查询检验任务详情
|
||||
*
|
||||
* @param recordId 检验任务详情主键
|
||||
* @return 检验任务详情
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public QcCheckTaskDetail selectQcCheckTaskDetailByRecordId(String recordId) {
|
||||
return qcCheckTaskDetailMapper.selectQcCheckTaskDetailByRecordId(recordId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询检验任务详情列表
|
||||
*
|
||||
* @param qcCheckTaskDetail 检验任务详情
|
||||
* @return 检验任务详情
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public List<QcCheckTaskDetail> selectQcCheckTaskDetailList(QcCheckTaskDetail qcCheckTaskDetail) {
|
||||
return qcCheckTaskDetailMapper.selectQcCheckTaskDetailList(qcCheckTaskDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检验任务详情
|
||||
*
|
||||
* @param qcCheckTaskDetail 检验任务详情
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int insertQcCheckTaskDetail(QcCheckTaskDetail qcCheckTaskDetail) {
|
||||
qcCheckTaskDetail.setCreateTime(DateUtils.getNowDate());
|
||||
return qcCheckTaskDetailMapper.insertQcCheckTaskDetail(qcCheckTaskDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检验任务详情
|
||||
*
|
||||
* @param qcCheckTaskDetail 检验任务详情
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int updateQcCheckTaskDetail(QcCheckTaskDetail qcCheckTaskDetail) {
|
||||
qcCheckTaskDetail.setUpdateTime(DateUtils.getNowDate());
|
||||
return qcCheckTaskDetailMapper.updateQcCheckTaskDetail(qcCheckTaskDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除检验任务详情
|
||||
*
|
||||
* @param recordIds 需要删除的检验任务详情主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteQcCheckTaskDetailByRecordIds(String[] recordIds) {
|
||||
return qcCheckTaskDetailMapper.deleteQcCheckTaskDetailByRecordIds(recordIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检验任务详情信息
|
||||
*
|
||||
* @param recordId 检验任务详情主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteQcCheckTaskDetailByRecordId(String recordId) {
|
||||
return qcCheckTaskDetailMapper.deleteQcCheckTaskDetailByRecordId(recordId);
|
||||
}
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
package com.op.quality.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.common.core.utils.DateUtils;
|
||||
import com.op.quality.domain.QcBomComponent;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.op.quality.mapper.QcCheckTaskIncomeMapper;
|
||||
import com.op.quality.domain.QcCheckTaskIncome;
|
||||
import com.op.quality.service.IQcCheckTaskIncomeService;
|
||||
|
||||
/**
|
||||
* 来料检验Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
@Service
|
||||
public class QcCheckTaskIncomeServiceImpl implements IQcCheckTaskIncomeService {
|
||||
@Autowired
|
||||
private QcCheckTaskIncomeMapper qcCheckTaskIncomeMapper;
|
||||
|
||||
/**
|
||||
* 查询来料检验
|
||||
*
|
||||
* @param recordId 来料检验主键
|
||||
* @return 来料检验
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public QcCheckTaskIncome selectQcCheckTaskIncomeByRecordId(String recordId) {
|
||||
return qcCheckTaskIncomeMapper.selectQcCheckTaskIncomeByRecordId(recordId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询来料检验列表
|
||||
*
|
||||
* @param qcCheckTaskIncome 来料检验
|
||||
* @return 来料检验
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public List<QcCheckTaskIncome> selectQcCheckTaskIncomeList(QcCheckTaskIncome qcCheckTaskIncome) {
|
||||
return qcCheckTaskIncomeMapper.selectQcCheckTaskIncomeList(qcCheckTaskIncome);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增来料检验
|
||||
*
|
||||
* @param qcCheckTaskIncome 来料检验
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int insertQcCheckTaskIncome(QcCheckTaskIncome qcCheckTaskIncome) {
|
||||
qcCheckTaskIncome.setCreateTime(DateUtils.getNowDate());
|
||||
return qcCheckTaskIncomeMapper.insertQcCheckTaskIncome(qcCheckTaskIncome);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改来料检验
|
||||
*
|
||||
* @param qcCheckTaskIncome 来料检验
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int updateQcCheckTaskIncome(QcCheckTaskIncome qcCheckTaskIncome) {
|
||||
qcCheckTaskIncome.setUpdateTime(DateUtils.getNowDate());
|
||||
return qcCheckTaskIncomeMapper.updateQcCheckTaskIncome(qcCheckTaskIncome);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除来料检验
|
||||
*
|
||||
* @param recordIds 需要删除的来料检验主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteQcCheckTaskIncomeByRecordIds(String[] recordIds) {
|
||||
return qcCheckTaskIncomeMapper.deleteQcCheckTaskIncomeByRecordIds(recordIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除来料检验信息
|
||||
*
|
||||
* @param recordId 来料检验主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteQcCheckTaskIncomeByRecordId(String recordId) {
|
||||
return qcCheckTaskIncomeMapper.deleteQcCheckTaskIncomeByRecordId(recordId);
|
||||
}
|
||||
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public List<QcBomComponent> getQcListBom(QcBomComponent bomComponent) {
|
||||
return qcCheckTaskIncomeMapper.getQcListBom(bomComponent);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package com.op.quality.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.op.quality.mapper.QcCheckTaskProduceMapper;
|
||||
import com.op.quality.domain.QcCheckTaskProduce;
|
||||
import com.op.quality.service.IQcCheckTaskProduceService;
|
||||
|
||||
/**
|
||||
* 生产过程检验任务Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
@Service
|
||||
public class QcCheckTaskProduceServiceImpl implements IQcCheckTaskProduceService {
|
||||
@Autowired
|
||||
private QcCheckTaskProduceMapper qcCheckTaskProduceMapper;
|
||||
|
||||
/**
|
||||
* 查询生产过程检验任务
|
||||
*
|
||||
* @param recordId 生产过程检验任务主键
|
||||
* @return 生产过程检验任务
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public QcCheckTaskProduce selectQcCheckTaskProduceByRecordId(String recordId) {
|
||||
return qcCheckTaskProduceMapper.selectQcCheckTaskProduceByRecordId(recordId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询生产过程检验任务列表
|
||||
*
|
||||
* @param qcCheckTaskProduce 生产过程检验任务
|
||||
* @return 生产过程检验任务
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public List<QcCheckTaskProduce> selectQcCheckTaskProduceList(QcCheckTaskProduce qcCheckTaskProduce) {
|
||||
return qcCheckTaskProduceMapper.selectQcCheckTaskProduceList(qcCheckTaskProduce);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增生产过程检验任务
|
||||
*
|
||||
* @param qcCheckTaskProduce 生产过程检验任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int insertQcCheckTaskProduce(QcCheckTaskProduce qcCheckTaskProduce) {
|
||||
qcCheckTaskProduce.setCreateTime(DateUtils.getNowDate());
|
||||
return qcCheckTaskProduceMapper.insertQcCheckTaskProduce(qcCheckTaskProduce);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改生产过程检验任务
|
||||
*
|
||||
* @param qcCheckTaskProduce 生产过程检验任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int updateQcCheckTaskProduce(QcCheckTaskProduce qcCheckTaskProduce) {
|
||||
qcCheckTaskProduce.setUpdateTime(DateUtils.getNowDate());
|
||||
return qcCheckTaskProduceMapper.updateQcCheckTaskProduce(qcCheckTaskProduce);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除生产过程检验任务
|
||||
*
|
||||
* @param recordIds 需要删除的生产过程检验任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteQcCheckTaskProduceByRecordIds(String[] recordIds) {
|
||||
return qcCheckTaskProduceMapper.deleteQcCheckTaskProduceByRecordIds(recordIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除生产过程检验任务信息
|
||||
*
|
||||
* @param recordId 生产过程检验任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteQcCheckTaskProduceByRecordId(String recordId) {
|
||||
return qcCheckTaskProduceMapper.deleteQcCheckTaskProduceByRecordId(recordId);
|
||||
}
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package com.op.quality.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.op.quality.mapper.QcCheckTaskWarehousingMapper;
|
||||
import com.op.quality.domain.QcCheckTaskWarehousing;
|
||||
import com.op.quality.service.IQcCheckTaskWarehousingService;
|
||||
|
||||
/**
|
||||
* 成品入库检验任务Service业务层处理
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-10-19
|
||||
*/
|
||||
@Service
|
||||
public class QcCheckTaskWarehousingServiceImpl implements IQcCheckTaskWarehousingService {
|
||||
@Autowired
|
||||
private QcCheckTaskWarehousingMapper qcCheckTaskWarehousingMapper;
|
||||
|
||||
/**
|
||||
* 查询成品入库检验任务
|
||||
*
|
||||
* @param recordId 成品入库检验任务主键
|
||||
* @return 成品入库检验任务
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public QcCheckTaskWarehousing selectQcCheckTaskWarehousingByRecordId(String recordId) {
|
||||
return qcCheckTaskWarehousingMapper.selectQcCheckTaskWarehousingByRecordId(recordId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询成品入库检验任务列表
|
||||
*
|
||||
* @param qcCheckTaskWarehousing 成品入库检验任务
|
||||
* @return 成品入库检验任务
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public List<QcCheckTaskWarehousing> selectQcCheckTaskWarehousingList(QcCheckTaskWarehousing qcCheckTaskWarehousing) {
|
||||
return qcCheckTaskWarehousingMapper.selectQcCheckTaskWarehousingList(qcCheckTaskWarehousing);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增成品入库检验任务
|
||||
*
|
||||
* @param qcCheckTaskWarehousing 成品入库检验任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int insertQcCheckTaskWarehousing(QcCheckTaskWarehousing qcCheckTaskWarehousing) {
|
||||
qcCheckTaskWarehousing.setCreateTime(DateUtils.getNowDate());
|
||||
return qcCheckTaskWarehousingMapper.insertQcCheckTaskWarehousing(qcCheckTaskWarehousing);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改成品入库检验任务
|
||||
*
|
||||
* @param qcCheckTaskWarehousing 成品入库检验任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int updateQcCheckTaskWarehousing(QcCheckTaskWarehousing qcCheckTaskWarehousing) {
|
||||
qcCheckTaskWarehousing.setUpdateTime(DateUtils.getNowDate());
|
||||
return qcCheckTaskWarehousingMapper.updateQcCheckTaskWarehousing(qcCheckTaskWarehousing);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除成品入库检验任务
|
||||
*
|
||||
* @param recordIds 需要删除的成品入库检验任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteQcCheckTaskWarehousingByRecordIds(String[] recordIds) {
|
||||
return qcCheckTaskWarehousingMapper.deleteQcCheckTaskWarehousingByRecordIds(recordIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除成品入库检验任务信息
|
||||
*
|
||||
* @param recordId 成品入库检验任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@DS("#header.poolName")
|
||||
public int deleteQcCheckTaskWarehousingByRecordId(String recordId) {
|
||||
return qcCheckTaskWarehousingMapper.deleteQcCheckTaskWarehousingByRecordId(recordId);
|
||||
}
|
||||
}
|
@ -0,0 +1,152 @@
|
||||
<?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.op.quality.mapper.QcCheckTaskDetailMapper">
|
||||
|
||||
<resultMap type="QcCheckTaskDetail" id="QcCheckTaskDetailResult">
|
||||
<result property="recordId" column="record_id" />
|
||||
<result property="belongTo" column="belong_to" />
|
||||
<result property="orderNum" column="order_num" />
|
||||
<result property="ruleName" column="rule_name" />
|
||||
<result property="propertyCode" column="property_code" />
|
||||
<result property="checkMode" column="check_mode" />
|
||||
<result property="checkTool" column="check_tool" />
|
||||
<result property="unitCode" column="unit_code" />
|
||||
<result property="checkStandard" column="check_standard" />
|
||||
<result property="actualValue" column="actual_value" />
|
||||
<result property="status" column="status" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="attr1" column="attr1" />
|
||||
<result property="attr2" column="attr2" />
|
||||
<result property="attr3" column="attr3" />
|
||||
<result property="attr4" column="attr4" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="factoryCode" column="factory_code" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectQcCheckTaskDetailVo">
|
||||
select record_id, belong_to, order_num, rule_name, property_code, check_mode, check_tool, unit_code, check_standard, actual_value, status, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, factory_code, del_flag from qc_check_task_detail
|
||||
</sql>
|
||||
|
||||
<select id="selectQcCheckTaskDetailList" parameterType="QcCheckTaskDetail" resultMap="QcCheckTaskDetailResult">
|
||||
<include refid="selectQcCheckTaskDetailVo"/>
|
||||
<where>
|
||||
<if test="belongTo != null and belongTo != ''"> and belong_to = #{belongTo}</if>
|
||||
<if test="orderNum != null and orderNum != ''"> and order_num = #{orderNum}</if>
|
||||
<if test="ruleName != null and ruleName != ''"> and rule_name like concat('%', #{ruleName}, '%')</if>
|
||||
<if test="propertyCode != null and propertyCode != ''"> and property_code = #{propertyCode}</if>
|
||||
<if test="checkMode != null and checkMode != ''"> and check_mode = #{checkMode}</if>
|
||||
<if test="checkTool != null and checkTool != ''"> and check_tool = #{checkTool}</if>
|
||||
<if test="unitCode != null and unitCode != ''"> and unit_code = #{unitCode}</if>
|
||||
<if test="checkStandard != null and checkStandard != ''"> and check_standard = #{checkStandard}</if>
|
||||
<if test="actualValue != null "> and actual_value = #{actualValue}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
||||
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
|
||||
<if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if>
|
||||
<if test="attr4 != null and attr4 != ''"> and attr4 = #{attr4}</if>
|
||||
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectQcCheckTaskDetailByRecordId" parameterType="String" resultMap="QcCheckTaskDetailResult">
|
||||
<include refid="selectQcCheckTaskDetailVo"/>
|
||||
where record_id = #{recordId}
|
||||
</select>
|
||||
|
||||
<insert id="insertQcCheckTaskDetail" parameterType="QcCheckTaskDetail">
|
||||
insert into qc_check_task_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="recordId != null">record_id,</if>
|
||||
<if test="belongTo != null">belong_to,</if>
|
||||
<if test="orderNum != null">order_num,</if>
|
||||
<if test="ruleName != null">rule_name,</if>
|
||||
<if test="propertyCode != null">property_code,</if>
|
||||
<if test="checkMode != null">check_mode,</if>
|
||||
<if test="checkTool != null">check_tool,</if>
|
||||
<if test="unitCode != null">unit_code,</if>
|
||||
<if test="checkStandard != null">check_standard,</if>
|
||||
<if test="actualValue != null">actual_value,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="attr1 != null">attr1,</if>
|
||||
<if test="attr2 != null">attr2,</if>
|
||||
<if test="attr3 != null">attr3,</if>
|
||||
<if test="attr4 != null">attr4,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="recordId != null">#{recordId},</if>
|
||||
<if test="belongTo != null">#{belongTo},</if>
|
||||
<if test="orderNum != null">#{orderNum},</if>
|
||||
<if test="ruleName != null">#{ruleName},</if>
|
||||
<if test="propertyCode != null">#{propertyCode},</if>
|
||||
<if test="checkMode != null">#{checkMode},</if>
|
||||
<if test="checkTool != null">#{checkTool},</if>
|
||||
<if test="unitCode != null">#{unitCode},</if>
|
||||
<if test="checkStandard != null">#{checkStandard},</if>
|
||||
<if test="actualValue != null">#{actualValue},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="attr1 != null">#{attr1},</if>
|
||||
<if test="attr2 != null">#{attr2},</if>
|
||||
<if test="attr3 != null">#{attr3},</if>
|
||||
<if test="attr4 != null">#{attr4},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">#{factoryCode},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateQcCheckTaskDetail" parameterType="QcCheckTaskDetail">
|
||||
update qc_check_task_detail
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="belongTo != null">belong_to = #{belongTo},</if>
|
||||
<if test="orderNum != null">order_num = #{orderNum},</if>
|
||||
<if test="ruleName != null">rule_name = #{ruleName},</if>
|
||||
<if test="propertyCode != null">property_code = #{propertyCode},</if>
|
||||
<if test="checkMode != null">check_mode = #{checkMode},</if>
|
||||
<if test="checkTool != null">check_tool = #{checkTool},</if>
|
||||
<if test="unitCode != null">unit_code = #{unitCode},</if>
|
||||
<if test="checkStandard != null">check_standard = #{checkStandard},</if>
|
||||
<if test="actualValue != null">actual_value = #{actualValue},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||||
<if test="attr2 != null">attr2 = #{attr2},</if>
|
||||
<if test="attr3 != null">attr3 = #{attr3},</if>
|
||||
<if test="attr4 != null">attr4 = #{attr4},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code = #{factoryCode},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where record_id = #{recordId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteQcCheckTaskDetailByRecordId" parameterType="String">
|
||||
delete from qc_check_task_detail where record_id = #{recordId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteQcCheckTaskDetailByRecordIds" parameterType="String">
|
||||
delete from qc_check_task_detail where record_id in
|
||||
<foreach item="recordId" collection="array" open="(" separator="," close=")">
|
||||
#{recordId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,190 @@
|
||||
<?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.op.quality.mapper.QcCheckTaskIncomeMapper">
|
||||
|
||||
<resultMap type="QcCheckTaskIncome" id="QcCheckTaskIncomeResult">
|
||||
<result property="recordId" column="record_id" />
|
||||
<result property="checkNo" column="check_no" />
|
||||
<result property="incomeBatchNo" column="income_batch_no" />
|
||||
<result property="orderNo" column="order_no" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="quality" column="quality" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="supplierCode" column="supplier_code" />
|
||||
<result property="supplierName" column="supplier_name" />
|
||||
<result property="incomeTime" column="income_time" />
|
||||
<result property="checkLoc" column="check_loc" />
|
||||
<result property="checkStatus" column="check_status" />
|
||||
<result property="checkManCode" column="check_man_code" />
|
||||
<result property="checkManName" column="check_man_name" />
|
||||
<result property="checkTime" column="check_time" />
|
||||
<result property="checkResult" column="check_result" />
|
||||
<result property="status" column="status" />
|
||||
<result property="attr1" column="attr1" />
|
||||
<result property="attr2" column="attr2" />
|
||||
<result property="attr3" column="attr3" />
|
||||
<result property="attr4" column="attr4" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="factoryCode" column="factory_code" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectQcCheckTaskIncomeVo">
|
||||
select record_id, check_no, income_batch_no, order_no, material_code, material_name, quality, unit, supplier_code, supplier_name, income_time, check_loc, check_status, check_man_code, check_man_name, check_time, check_result, status, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, factory_code, del_flag from qc_check_task_income
|
||||
</sql>
|
||||
|
||||
<select id="selectQcCheckTaskIncomeList" parameterType="QcCheckTaskIncome" resultMap="QcCheckTaskIncomeResult">
|
||||
<include refid="selectQcCheckTaskIncomeVo"/>
|
||||
<where>
|
||||
<if test="checkNo != null and checkNo != ''"> and check_no = #{checkNo}</if>
|
||||
<if test="incomeBatchNo != null and incomeBatchNo != ''"> and income_batch_no = #{incomeBatchNo}</if>
|
||||
<if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
|
||||
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if>
|
||||
<if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if>
|
||||
<if test="quality != null "> and quality = #{quality}</if>
|
||||
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
||||
<if test="supplierCode != null and supplierCode != ''"> and supplier_code = #{supplierCode}</if>
|
||||
<if test="supplierName != null and supplierName != ''"> and supplier_name like concat('%', #{supplierName}, '%')</if>
|
||||
<if test="incomeTime != null "> and income_time = #{incomeTime}</if>
|
||||
<if test="checkLoc != null and checkLoc != ''"> and check_loc = #{checkLoc}</if>
|
||||
<if test="checkStatus != null and checkStatus != ''"> and check_status = #{checkStatus}</if>
|
||||
<if test="checkManCode != null and checkManCode != ''"> and check_man_code = #{checkManCode}</if>
|
||||
<if test="checkManName != null and checkManName != ''"> and check_man_name like concat('%', #{checkManName}, '%')</if>
|
||||
<if test="checkTime != null "> and check_time = #{checkTime}</if>
|
||||
<if test="checkResult != null and checkResult != ''"> and check_result = #{checkResult}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
||||
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
|
||||
<if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if>
|
||||
<if test="attr4 != null and attr4 != ''"> and attr4 = #{attr4}</if>
|
||||
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectQcCheckTaskIncomeByRecordId" parameterType="String" resultMap="QcCheckTaskIncomeResult">
|
||||
<include refid="selectQcCheckTaskIncomeVo"/>
|
||||
where record_id = #{recordId}
|
||||
</select>
|
||||
<select id="getQcListBom" resultType="com.op.quality.domain.QcBomComponent">
|
||||
select product_code component,product_desc_zh componentName
|
||||
from base_product
|
||||
where del_flag = '0'
|
||||
<if test="component != null and component != ''"> and product_code like concat('%', #{component}, '%')</if>
|
||||
<if test="componentName != null and componentName != ''"> and product_desc_zh like concat('%', #{componentName}, '%')</if>
|
||||
</select>
|
||||
|
||||
<insert id="insertQcCheckTaskIncome" parameterType="QcCheckTaskIncome">
|
||||
insert into qc_check_task_income
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="recordId != null">record_id,</if>
|
||||
<if test="checkNo != null">check_no,</if>
|
||||
<if test="incomeBatchNo != null">income_batch_no,</if>
|
||||
<if test="orderNo != null">order_no,</if>
|
||||
<if test="materialCode != null">material_code,</if>
|
||||
<if test="materialName != null">material_name,</if>
|
||||
<if test="quality != null">quality,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="supplierCode != null">supplier_code,</if>
|
||||
<if test="supplierName != null">supplier_name,</if>
|
||||
<if test="incomeTime != null">income_time,</if>
|
||||
<if test="checkLoc != null">check_loc,</if>
|
||||
<if test="checkStatus != null">check_status,</if>
|
||||
<if test="checkManCode != null">check_man_code,</if>
|
||||
<if test="checkManName != null">check_man_name,</if>
|
||||
<if test="checkTime != null">check_time,</if>
|
||||
<if test="checkResult != null">check_result,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="attr1 != null">attr1,</if>
|
||||
<if test="attr2 != null">attr2,</if>
|
||||
<if test="attr3 != null">attr3,</if>
|
||||
<if test="attr4 != null">attr4,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="recordId != null">#{recordId},</if>
|
||||
<if test="checkNo != null">#{checkNo},</if>
|
||||
<if test="incomeBatchNo != null">#{incomeBatchNo},</if>
|
||||
<if test="orderNo != null">#{orderNo},</if>
|
||||
<if test="materialCode != null">#{materialCode},</if>
|
||||
<if test="materialName != null">#{materialName},</if>
|
||||
<if test="quality != null">#{quality},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="supplierCode != null">#{supplierCode},</if>
|
||||
<if test="supplierName != null">#{supplierName},</if>
|
||||
<if test="incomeTime != null">#{incomeTime},</if>
|
||||
<if test="checkLoc != null">#{checkLoc},</if>
|
||||
<if test="checkStatus != null">#{checkStatus},</if>
|
||||
<if test="checkManCode != null">#{checkManCode},</if>
|
||||
<if test="checkManName != null">#{checkManName},</if>
|
||||
<if test="checkTime != null">#{checkTime},</if>
|
||||
<if test="checkResult != null">#{checkResult},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="attr1 != null">#{attr1},</if>
|
||||
<if test="attr2 != null">#{attr2},</if>
|
||||
<if test="attr3 != null">#{attr3},</if>
|
||||
<if test="attr4 != null">#{attr4},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">#{factoryCode},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateQcCheckTaskIncome" parameterType="QcCheckTaskIncome">
|
||||
update qc_check_task_income
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="checkNo != null">check_no = #{checkNo},</if>
|
||||
<if test="incomeBatchNo != null">income_batch_no = #{incomeBatchNo},</if>
|
||||
<if test="orderNo != null">order_no = #{orderNo},</if>
|
||||
<if test="materialCode != null">material_code = #{materialCode},</if>
|
||||
<if test="materialName != null">material_name = #{materialName},</if>
|
||||
<if test="quality != null">quality = #{quality},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="supplierCode != null">supplier_code = #{supplierCode},</if>
|
||||
<if test="supplierName != null">supplier_name = #{supplierName},</if>
|
||||
<if test="incomeTime != null">income_time = #{incomeTime},</if>
|
||||
<if test="checkLoc != null">check_loc = #{checkLoc},</if>
|
||||
<if test="checkStatus != null">check_status = #{checkStatus},</if>
|
||||
<if test="checkManCode != null">check_man_code = #{checkManCode},</if>
|
||||
<if test="checkManName != null">check_man_name = #{checkManName},</if>
|
||||
<if test="checkTime != null">check_time = #{checkTime},</if>
|
||||
<if test="checkResult != null">check_result = #{checkResult},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||||
<if test="attr2 != null">attr2 = #{attr2},</if>
|
||||
<if test="attr3 != null">attr3 = #{attr3},</if>
|
||||
<if test="attr4 != null">attr4 = #{attr4},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code = #{factoryCode},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where record_id = #{recordId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteQcCheckTaskIncomeByRecordId" parameterType="String">
|
||||
delete from qc_check_task_income where record_id = #{recordId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteQcCheckTaskIncomeByRecordIds" parameterType="String">
|
||||
delete from qc_check_task_income where record_id in
|
||||
<foreach item="recordId" collection="array" open="(" separator="," close=")">
|
||||
#{recordId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,183 @@
|
||||
<?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.op.quality.mapper.QcCheckTaskProduceMapper">
|
||||
|
||||
<resultMap type="QcCheckTaskProduce" id="QcCheckTaskProduceResult">
|
||||
<result property="recordId" column="record_id" />
|
||||
<result property="checkNo" column="check_no" />
|
||||
<result property="batchNo" column="batch_no" />
|
||||
<result property="orderNo" column="order_no" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="quality" column="quality" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="carCode" column="car_code" />
|
||||
<result property="carName" column="car_name" />
|
||||
<result property="produceDate" column="produce_date" />
|
||||
<result property="checkLoc" column="check_loc" />
|
||||
<result property="checkStatus" column="check_status" />
|
||||
<result property="checkManCode" column="check_man_code" />
|
||||
<result property="checkManName" column="check_man_name" />
|
||||
<result property="checkTime" column="check_time" />
|
||||
<result property="checkResult" column="check_result" />
|
||||
<result property="status" column="status" />
|
||||
<result property="attr1" column="attr1" />
|
||||
<result property="attr2" column="attr2" />
|
||||
<result property="attr3" column="attr3" />
|
||||
<result property="attr4" column="attr4" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="factoryCode" column="factory_code" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectQcCheckTaskProduceVo">
|
||||
select record_id, check_no, batch_no, order_no, material_code, material_name, quality, unit, car_code, car_name, produce_date, check_loc, check_status, check_man_code, check_man_name, check_time, check_result, status, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, factory_code, del_flag from qc_check_task_produce
|
||||
</sql>
|
||||
|
||||
<select id="selectQcCheckTaskProduceList" parameterType="QcCheckTaskProduce" resultMap="QcCheckTaskProduceResult">
|
||||
<include refid="selectQcCheckTaskProduceVo"/>
|
||||
<where>
|
||||
<if test="checkNo != null and checkNo != ''"> and check_no = #{checkNo}</if>
|
||||
<if test="batchNo != null and batchNo != ''"> and batch_no = #{batchNo}</if>
|
||||
<if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
|
||||
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if>
|
||||
<if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if>
|
||||
<if test="quality != null "> and quality = #{quality}</if>
|
||||
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
||||
<if test="carCode != null and carCode != ''"> and car_code = #{carCode}</if>
|
||||
<if test="carName != null and carName != ''"> and car_name like concat('%', #{carName}, '%')</if>
|
||||
<if test="produceDate != null "> and produce_date = #{produceDate}</if>
|
||||
<if test="checkLoc != null and checkLoc != ''"> and check_loc = #{checkLoc}</if>
|
||||
<if test="checkStatus != null and checkStatus != ''"> and check_status = #{checkStatus}</if>
|
||||
<if test="checkManCode != null and checkManCode != ''"> and check_man_code = #{checkManCode}</if>
|
||||
<if test="checkManName != null and checkManName != ''"> and check_man_name like concat('%', #{checkManName}, '%')</if>
|
||||
<if test="checkTime != null "> and check_time = #{checkTime}</if>
|
||||
<if test="checkResult != null and checkResult != ''"> and check_result = #{checkResult}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
||||
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
|
||||
<if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if>
|
||||
<if test="attr4 != null and attr4 != ''"> and attr4 = #{attr4}</if>
|
||||
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectQcCheckTaskProduceByRecordId" parameterType="String" resultMap="QcCheckTaskProduceResult">
|
||||
<include refid="selectQcCheckTaskProduceVo"/>
|
||||
where record_id = #{recordId}
|
||||
</select>
|
||||
|
||||
<insert id="insertQcCheckTaskProduce" parameterType="QcCheckTaskProduce">
|
||||
insert into qc_check_task_produce
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="recordId != null">record_id,</if>
|
||||
<if test="checkNo != null">check_no,</if>
|
||||
<if test="batchNo != null">batch_no,</if>
|
||||
<if test="orderNo != null">order_no,</if>
|
||||
<if test="materialCode != null">material_code,</if>
|
||||
<if test="materialName != null">material_name,</if>
|
||||
<if test="quality != null">quality,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="carCode != null">car_code,</if>
|
||||
<if test="carName != null">car_name,</if>
|
||||
<if test="produceDate != null">produce_date,</if>
|
||||
<if test="checkLoc != null">check_loc,</if>
|
||||
<if test="checkStatus != null">check_status,</if>
|
||||
<if test="checkManCode != null">check_man_code,</if>
|
||||
<if test="checkManName != null">check_man_name,</if>
|
||||
<if test="checkTime != null">check_time,</if>
|
||||
<if test="checkResult != null">check_result,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="attr1 != null">attr1,</if>
|
||||
<if test="attr2 != null">attr2,</if>
|
||||
<if test="attr3 != null">attr3,</if>
|
||||
<if test="attr4 != null">attr4,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="recordId != null">#{recordId},</if>
|
||||
<if test="checkNo != null">#{checkNo},</if>
|
||||
<if test="batchNo != null">#{batchNo},</if>
|
||||
<if test="orderNo != null">#{orderNo},</if>
|
||||
<if test="materialCode != null">#{materialCode},</if>
|
||||
<if test="materialName != null">#{materialName},</if>
|
||||
<if test="quality != null">#{quality},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="carCode != null">#{carCode},</if>
|
||||
<if test="carName != null">#{carName},</if>
|
||||
<if test="produceDate != null">#{produceDate},</if>
|
||||
<if test="checkLoc != null">#{checkLoc},</if>
|
||||
<if test="checkStatus != null">#{checkStatus},</if>
|
||||
<if test="checkManCode != null">#{checkManCode},</if>
|
||||
<if test="checkManName != null">#{checkManName},</if>
|
||||
<if test="checkTime != null">#{checkTime},</if>
|
||||
<if test="checkResult != null">#{checkResult},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="attr1 != null">#{attr1},</if>
|
||||
<if test="attr2 != null">#{attr2},</if>
|
||||
<if test="attr3 != null">#{attr3},</if>
|
||||
<if test="attr4 != null">#{attr4},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">#{factoryCode},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateQcCheckTaskProduce" parameterType="QcCheckTaskProduce">
|
||||
update qc_check_task_produce
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="checkNo != null">check_no = #{checkNo},</if>
|
||||
<if test="batchNo != null">batch_no = #{batchNo},</if>
|
||||
<if test="orderNo != null">order_no = #{orderNo},</if>
|
||||
<if test="materialCode != null">material_code = #{materialCode},</if>
|
||||
<if test="materialName != null">material_name = #{materialName},</if>
|
||||
<if test="quality != null">quality = #{quality},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="carCode != null">car_code = #{carCode},</if>
|
||||
<if test="carName != null">car_name = #{carName},</if>
|
||||
<if test="produceDate != null">produce_date = #{produceDate},</if>
|
||||
<if test="checkLoc != null">check_loc = #{checkLoc},</if>
|
||||
<if test="checkStatus != null">check_status = #{checkStatus},</if>
|
||||
<if test="checkManCode != null">check_man_code = #{checkManCode},</if>
|
||||
<if test="checkManName != null">check_man_name = #{checkManName},</if>
|
||||
<if test="checkTime != null">check_time = #{checkTime},</if>
|
||||
<if test="checkResult != null">check_result = #{checkResult},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||||
<if test="attr2 != null">attr2 = #{attr2},</if>
|
||||
<if test="attr3 != null">attr3 = #{attr3},</if>
|
||||
<if test="attr4 != null">attr4 = #{attr4},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code = #{factoryCode},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where record_id = #{recordId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteQcCheckTaskProduceByRecordId" parameterType="String">
|
||||
delete from qc_check_task_produce where record_id = #{recordId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteQcCheckTaskProduceByRecordIds" parameterType="String">
|
||||
delete from qc_check_task_produce where record_id in
|
||||
<foreach item="recordId" collection="array" open="(" separator="," close=")">
|
||||
#{recordId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,183 @@
|
||||
<?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.op.quality.mapper.QcCheckTaskWarehousingMapper">
|
||||
|
||||
<resultMap type="QcCheckTaskWarehousing" id="QcCheckTaskWarehousingResult">
|
||||
<result property="recordId" column="record_id" />
|
||||
<result property="checkNo" column="check_no" />
|
||||
<result property="batchNo" column="batch_no" />
|
||||
<result property="orderNo" column="order_no" />
|
||||
<result property="materialCode" column="material_code" />
|
||||
<result property="materialName" column="material_name" />
|
||||
<result property="quality" column="quality" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="supplierCode" column="supplier_code" />
|
||||
<result property="supplierName" column="supplier_name" />
|
||||
<result property="incomeTime" column="income_time" />
|
||||
<result property="checkLoc" column="check_loc" />
|
||||
<result property="checkStatus" column="check_status" />
|
||||
<result property="checkManCode" column="check_man_code" />
|
||||
<result property="checkManName" column="check_man_name" />
|
||||
<result property="checkTime" column="check_time" />
|
||||
<result property="checkResult" column="check_result" />
|
||||
<result property="status" column="status" />
|
||||
<result property="attr1" column="attr1" />
|
||||
<result property="attr2" column="attr2" />
|
||||
<result property="attr3" column="attr3" />
|
||||
<result property="attr4" column="attr4" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="factoryCode" column="factory_code" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectQcCheckTaskWarehousingVo">
|
||||
select record_id, check_no, batch_no, order_no, material_code, material_name, quality, unit, supplier_code, supplier_name, income_time, check_loc, check_status, check_man_code, check_man_name, check_time, check_result, status, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, factory_code, del_flag from qc_check_task_warehousing
|
||||
</sql>
|
||||
|
||||
<select id="selectQcCheckTaskWarehousingList" parameterType="QcCheckTaskWarehousing" resultMap="QcCheckTaskWarehousingResult">
|
||||
<include refid="selectQcCheckTaskWarehousingVo"/>
|
||||
<where>
|
||||
<if test="checkNo != null and checkNo != ''"> and check_no = #{checkNo}</if>
|
||||
<if test="batchNo != null and batchNo != ''"> and batch_no = #{batchNo}</if>
|
||||
<if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
|
||||
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if>
|
||||
<if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if>
|
||||
<if test="quality != null "> and quality = #{quality}</if>
|
||||
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
||||
<if test="supplierCode != null and supplierCode != ''"> and supplier_code = #{supplierCode}</if>
|
||||
<if test="supplierName != null and supplierName != ''"> and supplier_name like concat('%', #{supplierName}, '%')</if>
|
||||
<if test="incomeTime != null "> and income_time = #{incomeTime}</if>
|
||||
<if test="checkLoc != null and checkLoc != ''"> and check_loc = #{checkLoc}</if>
|
||||
<if test="checkStatus != null and checkStatus != ''"> and check_status = #{checkStatus}</if>
|
||||
<if test="checkManCode != null and checkManCode != ''"> and check_man_code = #{checkManCode}</if>
|
||||
<if test="checkManName != null and checkManName != ''"> and check_man_name like concat('%', #{checkManName}, '%')</if>
|
||||
<if test="checkTime != null "> and check_time = #{checkTime}</if>
|
||||
<if test="checkResult != null and checkResult != ''"> and check_result = #{checkResult}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
||||
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
|
||||
<if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if>
|
||||
<if test="attr4 != null and attr4 != ''"> and attr4 = #{attr4}</if>
|
||||
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectQcCheckTaskWarehousingByRecordId" parameterType="String" resultMap="QcCheckTaskWarehousingResult">
|
||||
<include refid="selectQcCheckTaskWarehousingVo"/>
|
||||
where record_id = #{recordId}
|
||||
</select>
|
||||
|
||||
<insert id="insertQcCheckTaskWarehousing" parameterType="QcCheckTaskWarehousing">
|
||||
insert into qc_check_task_warehousing
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="recordId != null">record_id,</if>
|
||||
<if test="checkNo != null">check_no,</if>
|
||||
<if test="batchNo != null">batch_no,</if>
|
||||
<if test="orderNo != null">order_no,</if>
|
||||
<if test="materialCode != null">material_code,</if>
|
||||
<if test="materialName != null">material_name,</if>
|
||||
<if test="quality != null">quality,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="supplierCode != null">supplier_code,</if>
|
||||
<if test="supplierName != null">supplier_name,</if>
|
||||
<if test="incomeTime != null">income_time,</if>
|
||||
<if test="checkLoc != null">check_loc,</if>
|
||||
<if test="checkStatus != null">check_status,</if>
|
||||
<if test="checkManCode != null">check_man_code,</if>
|
||||
<if test="checkManName != null">check_man_name,</if>
|
||||
<if test="checkTime != null">check_time,</if>
|
||||
<if test="checkResult != null">check_result,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="attr1 != null">attr1,</if>
|
||||
<if test="attr2 != null">attr2,</if>
|
||||
<if test="attr3 != null">attr3,</if>
|
||||
<if test="attr4 != null">attr4,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="recordId != null">#{recordId},</if>
|
||||
<if test="checkNo != null">#{checkNo},</if>
|
||||
<if test="batchNo != null">#{batchNo},</if>
|
||||
<if test="orderNo != null">#{orderNo},</if>
|
||||
<if test="materialCode != null">#{materialCode},</if>
|
||||
<if test="materialName != null">#{materialName},</if>
|
||||
<if test="quality != null">#{quality},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="supplierCode != null">#{supplierCode},</if>
|
||||
<if test="supplierName != null">#{supplierName},</if>
|
||||
<if test="incomeTime != null">#{incomeTime},</if>
|
||||
<if test="checkLoc != null">#{checkLoc},</if>
|
||||
<if test="checkStatus != null">#{checkStatus},</if>
|
||||
<if test="checkManCode != null">#{checkManCode},</if>
|
||||
<if test="checkManName != null">#{checkManName},</if>
|
||||
<if test="checkTime != null">#{checkTime},</if>
|
||||
<if test="checkResult != null">#{checkResult},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="attr1 != null">#{attr1},</if>
|
||||
<if test="attr2 != null">#{attr2},</if>
|
||||
<if test="attr3 != null">#{attr3},</if>
|
||||
<if test="attr4 != null">#{attr4},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">#{factoryCode},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateQcCheckTaskWarehousing" parameterType="QcCheckTaskWarehousing">
|
||||
update qc_check_task_warehousing
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="checkNo != null">check_no = #{checkNo},</if>
|
||||
<if test="batchNo != null">batch_no = #{batchNo},</if>
|
||||
<if test="orderNo != null">order_no = #{orderNo},</if>
|
||||
<if test="materialCode != null">material_code = #{materialCode},</if>
|
||||
<if test="materialName != null">material_name = #{materialName},</if>
|
||||
<if test="quality != null">quality = #{quality},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="supplierCode != null">supplier_code = #{supplierCode},</if>
|
||||
<if test="supplierName != null">supplier_name = #{supplierName},</if>
|
||||
<if test="incomeTime != null">income_time = #{incomeTime},</if>
|
||||
<if test="checkLoc != null">check_loc = #{checkLoc},</if>
|
||||
<if test="checkStatus != null">check_status = #{checkStatus},</if>
|
||||
<if test="checkManCode != null">check_man_code = #{checkManCode},</if>
|
||||
<if test="checkManName != null">check_man_name = #{checkManName},</if>
|
||||
<if test="checkTime != null">check_time = #{checkTime},</if>
|
||||
<if test="checkResult != null">check_result = #{checkResult},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||||
<if test="attr2 != null">attr2 = #{attr2},</if>
|
||||
<if test="attr3 != null">attr3 = #{attr3},</if>
|
||||
<if test="attr4 != null">attr4 = #{attr4},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="factoryCode != null and factoryCode != ''">factory_code = #{factoryCode},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
</trim>
|
||||
where record_id = #{recordId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteQcCheckTaskWarehousingByRecordId" parameterType="String">
|
||||
delete from qc_check_task_warehousing where record_id = #{recordId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteQcCheckTaskWarehousingByRecordIds" parameterType="String">
|
||||
delete from qc_check_task_warehousing where record_id in
|
||||
<foreach item="recordId" collection="array" open="(" separator="," close=")">
|
||||
#{recordId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue