update - 添加返修措施、pda管理
parent
2eeef36acb
commit
8ef73e6032
@ -0,0 +1,114 @@
|
||||
package com.aucma.report.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.aucma.common.utils.DateUtils;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.aucma.common.annotation.Log;
|
||||
import com.aucma.common.core.controller.BaseController;
|
||||
import com.aucma.common.core.domain.AjaxResult;
|
||||
import com.aucma.common.enums.BusinessType;
|
||||
import com.aucma.report.domain.BasePdaRecord;
|
||||
import com.aucma.report.service.IBasePdaRecordService;
|
||||
import com.aucma.common.utils.poi.ExcelUtil;
|
||||
import com.aucma.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* PDA管理Controller
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/report/pdaRecord" )
|
||||
public class BasePdaRecordController extends BaseController {
|
||||
@Autowired
|
||||
private IBasePdaRecordService basePdaRecordService;
|
||||
|
||||
/**
|
||||
* 查询PDA管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pdaRecord:pdaRecord:list')" )
|
||||
@GetMapping("/list" )
|
||||
public TableDataInfo list(BasePdaRecord basePdaRecord) {
|
||||
startPage();
|
||||
List<BasePdaRecord> list = basePdaRecordService.selectBasePdaRecordList(basePdaRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* PDA获取手持串号
|
||||
* @param basePdaRecord
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/getPdaRecord" )
|
||||
public AjaxResult getPdaRecord(BasePdaRecord basePdaRecord) {
|
||||
List<BasePdaRecord> list = basePdaRecordService.selectBasePdaRecordList(basePdaRecord);
|
||||
return success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出PDA管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pdaRecord:pdaRecord:export')" )
|
||||
@Log(title = "PDA管理" , businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export" )
|
||||
public void export(HttpServletResponse response, BasePdaRecord basePdaRecord) {
|
||||
List<BasePdaRecord> list = basePdaRecordService.selectBasePdaRecordList(basePdaRecord);
|
||||
ExcelUtil<BasePdaRecord> util = new ExcelUtil<BasePdaRecord>(BasePdaRecord. class);
|
||||
util.exportExcel(response, list, "PDA管理数据" );
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取PDA管理详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pdaRecord:pdaRecord:query')" )
|
||||
@GetMapping(value = "/{objId}" )
|
||||
public AjaxResult getInfo(@PathVariable("objId" ) Long objId) {
|
||||
return success(basePdaRecordService.selectBasePdaRecordByObjId(objId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增PDA管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pdaRecord:pdaRecord:add')" )
|
||||
@Log(title = "PDA管理" , businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody BasePdaRecord basePdaRecord) {
|
||||
basePdaRecord.setCreatedBy(getUsername());
|
||||
basePdaRecord.setCreatedTime(DateUtils.getNowDate());
|
||||
return toAjax(basePdaRecordService.insertBasePdaRecord(basePdaRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改PDA管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pdaRecord:pdaRecord:edit')" )
|
||||
@Log(title = "PDA管理" , businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody BasePdaRecord basePdaRecord) {
|
||||
basePdaRecord.setUpdatedBy(getUsername());
|
||||
basePdaRecord.setUpdatedTime(DateUtils.getNowDate());
|
||||
return toAjax(basePdaRecordService.updateBasePdaRecord(basePdaRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除PDA管理
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pdaRecord:pdaRecord:remove')" )
|
||||
@Log(title = "PDA管理" , businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{objIds}" )
|
||||
public AjaxResult remove(@PathVariable Long[] objIds) {
|
||||
return toAjax(basePdaRecordService.deleteBasePdaRecordByObjIds(objIds));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,115 @@
|
||||
package com.aucma.report.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.aucma.common.utils.DateUtils;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.aucma.common.annotation.Log;
|
||||
import com.aucma.common.core.controller.BaseController;
|
||||
import com.aucma.common.core.domain.AjaxResult;
|
||||
import com.aucma.common.enums.BusinessType;
|
||||
import com.aucma.report.domain.ReportRepairMeasures;
|
||||
import com.aucma.report.service.IReportRepairMeasuresService;
|
||||
import com.aucma.common.utils.poi.ExcelUtil;
|
||||
import com.aucma.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 返修措施维护Controller
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/report/repairMeasures" )
|
||||
public class ReportRepairMeasuresController extends BaseController {
|
||||
@Autowired
|
||||
private IReportRepairMeasuresService reportRepairMeasuresService;
|
||||
|
||||
/**
|
||||
* 查询返修措施维护列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:repairMeasures:list')" )
|
||||
@GetMapping("/list" )
|
||||
public TableDataInfo list(ReportRepairMeasures reportRepairMeasures) {
|
||||
startPage();
|
||||
List<ReportRepairMeasures> list = reportRepairMeasuresService.selectReportRepairMeasuresList(reportRepairMeasures);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* PDA获取返修措施
|
||||
* @param reportRepairMeasures
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/getRepairMeasures" )
|
||||
public AjaxResult getRepairMeasures(ReportRepairMeasures reportRepairMeasures) {
|
||||
List<ReportRepairMeasures> list = reportRepairMeasuresService.selectReportRepairMeasuresList(reportRepairMeasures);
|
||||
return success(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出返修措施维护列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:repairMeasures:export')" )
|
||||
@Log(title = "返修措施维护" , businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export" )
|
||||
public void export(HttpServletResponse response, ReportRepairMeasures reportRepairMeasures) {
|
||||
List<ReportRepairMeasures> list = reportRepairMeasuresService.selectReportRepairMeasuresList(reportRepairMeasures);
|
||||
ExcelUtil<ReportRepairMeasures> util = new ExcelUtil<ReportRepairMeasures>(ReportRepairMeasures. class);
|
||||
util.exportExcel(response, list, "返修措施维护数据" );
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取返修措施维护详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:repairMeasures:query')" )
|
||||
@GetMapping(value = "/{objId}" )
|
||||
public AjaxResult getInfo(@PathVariable("objId" ) Long objId) {
|
||||
return success(reportRepairMeasuresService.selectReportRepairMeasuresByObjId(objId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增返修措施维护
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:repairMeasures:add')" )
|
||||
@Log(title = "返修措施维护" , businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ReportRepairMeasures reportRepairMeasures) {
|
||||
reportRepairMeasures.setCreatedBy(getUsername());
|
||||
reportRepairMeasures.setCreatedTime(DateUtils.getNowDate());
|
||||
return toAjax(reportRepairMeasuresService.insertReportRepairMeasures(reportRepairMeasures));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改返修措施维护
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:repairMeasures:edit')" )
|
||||
@Log(title = "返修措施维护" , businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ReportRepairMeasures reportRepairMeasures) {
|
||||
reportRepairMeasures.setUpdatedBy(getUsername());
|
||||
reportRepairMeasures.setUpdatedTime(DateUtils.getNowDate());
|
||||
return toAjax(reportRepairMeasuresService.updateReportRepairMeasures(reportRepairMeasures));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除返修措施维护
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('report:repairMeasures:remove')" )
|
||||
@Log(title = "返修措施维护" , businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{objIds}" )
|
||||
public AjaxResult remove(@PathVariable Long[] objIds) {
|
||||
return toAjax(reportRepairMeasuresService.deleteReportRepairMeasuresByObjIds(objIds));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,162 @@
|
||||
package com.aucma.report.domain;
|
||||
|
||||
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.aucma.common.annotation.Excel;
|
||||
import com.aucma.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* PDA管理对象 base_pda_record
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
public class BasePdaRecord extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键标识
|
||||
*/
|
||||
private Long objId;
|
||||
|
||||
/**
|
||||
* PDA名称
|
||||
*/
|
||||
@Excel(name = "PDA名称")
|
||||
private String pdaName;
|
||||
|
||||
/**
|
||||
* PDA串码
|
||||
*/
|
||||
@Excel(name = "PDA串码")
|
||||
private String serialCode;
|
||||
|
||||
/**
|
||||
* 工序编号
|
||||
*/
|
||||
@Excel(name = "工序编号")
|
||||
private Long procedureCode;
|
||||
|
||||
/**
|
||||
* 启用标识
|
||||
*/
|
||||
@Excel(name = "启用标识")
|
||||
private Long isFlag;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Excel(name = "创建人")
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 修改人
|
||||
*/
|
||||
@Excel(name = "修改人")
|
||||
private String updatedBy;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatedTime;
|
||||
|
||||
public void setObjId(Long objId) {
|
||||
this.objId = objId;
|
||||
}
|
||||
|
||||
public Long getObjId() {
|
||||
return objId;
|
||||
}
|
||||
|
||||
public void setPdaName(String pdaName) {
|
||||
this.pdaName = pdaName;
|
||||
}
|
||||
|
||||
public String getPdaName() {
|
||||
return pdaName;
|
||||
}
|
||||
|
||||
public void setSerialCode(String serialCode) {
|
||||
this.serialCode = serialCode;
|
||||
}
|
||||
|
||||
public String getSerialCode() {
|
||||
return serialCode;
|
||||
}
|
||||
|
||||
public void setProcedureCode(Long procedureCode) {
|
||||
this.procedureCode = procedureCode;
|
||||
}
|
||||
|
||||
public Long getProcedureCode() {
|
||||
return procedureCode;
|
||||
}
|
||||
|
||||
public void setIsFlag(Long isFlag) {
|
||||
this.isFlag = isFlag;
|
||||
}
|
||||
|
||||
public Long getIsFlag() {
|
||||
return isFlag;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedTime(Date createdTime) {
|
||||
this.createdTime = createdTime;
|
||||
}
|
||||
|
||||
public Date getCreatedTime() {
|
||||
return createdTime;
|
||||
}
|
||||
|
||||
public void setUpdatedBy(String updatedBy) {
|
||||
this.updatedBy = updatedBy;
|
||||
}
|
||||
|
||||
public String getUpdatedBy() {
|
||||
return updatedBy;
|
||||
}
|
||||
|
||||
public void setUpdatedTime(Date updatedTime) {
|
||||
this.updatedTime = updatedTime;
|
||||
}
|
||||
|
||||
public Date getUpdatedTime() {
|
||||
return updatedTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("objId", getObjId())
|
||||
.append("pdaName", getPdaName())
|
||||
.append("serialCode", getSerialCode())
|
||||
.append("remark", getRemark())
|
||||
.append("procedureCode", getProcedureCode())
|
||||
.append("isFlag", getIsFlag())
|
||||
.append("createdBy", getCreatedBy())
|
||||
.append("createdTime", getCreatedTime())
|
||||
.append("updatedBy", getUpdatedBy())
|
||||
.append("updatedTime", getUpdatedTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,161 @@
|
||||
package com.aucma.report.domain;
|
||||
|
||||
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.aucma.common.annotation.Excel;
|
||||
import com.aucma.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 返修措施维护对象 report_repair_measures
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
public class ReportRepairMeasures extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键标识
|
||||
*/
|
||||
private Long objId;
|
||||
|
||||
/**
|
||||
* 返修措施编码
|
||||
*/
|
||||
@Excel(name = "返修措施编码")
|
||||
private String repairCode;
|
||||
|
||||
/**
|
||||
* 返修措施名称
|
||||
*/
|
||||
@Excel(name = "返修措施名称")
|
||||
private String repairName;
|
||||
|
||||
/**
|
||||
* 工序编号
|
||||
*/
|
||||
@Excel(name = "工序编号")
|
||||
private String processCode;
|
||||
|
||||
/**
|
||||
* 启用标识
|
||||
*/
|
||||
@Excel(name = "启用标识")
|
||||
private Long isFlag;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Excel(name = "创建人")
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Excel(name = "更新人")
|
||||
private String updatedBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date updatedTime;
|
||||
|
||||
public void setObjId(Long objId) {
|
||||
this.objId = objId;
|
||||
}
|
||||
|
||||
public Long getObjId() {
|
||||
return objId;
|
||||
}
|
||||
|
||||
public void setRepairCode(String repairCode) {
|
||||
this.repairCode = repairCode;
|
||||
}
|
||||
|
||||
public String getRepairCode() {
|
||||
return repairCode;
|
||||
}
|
||||
|
||||
public void setRepairName(String repairName) {
|
||||
this.repairName = repairName;
|
||||
}
|
||||
|
||||
public String getRepairName() {
|
||||
return repairName;
|
||||
}
|
||||
|
||||
public void setProcessCode(String processCode) {
|
||||
this.processCode = processCode;
|
||||
}
|
||||
|
||||
public String getProcessCode() {
|
||||
return processCode;
|
||||
}
|
||||
|
||||
public void setIsFlag(Long isFlag) {
|
||||
this.isFlag = isFlag;
|
||||
}
|
||||
|
||||
public Long getIsFlag() {
|
||||
return isFlag;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedTime(Date createdTime) {
|
||||
this.createdTime = createdTime;
|
||||
}
|
||||
|
||||
public Date getCreatedTime() {
|
||||
return createdTime;
|
||||
}
|
||||
|
||||
public void setUpdatedBy(String updatedBy) {
|
||||
this.updatedBy = updatedBy;
|
||||
}
|
||||
|
||||
public String getUpdatedBy() {
|
||||
return updatedBy;
|
||||
}
|
||||
|
||||
public void setUpdatedTime(Date updatedTime) {
|
||||
this.updatedTime = updatedTime;
|
||||
}
|
||||
|
||||
public Date getUpdatedTime() {
|
||||
return updatedTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("objId", getObjId())
|
||||
.append("repairCode", getRepairCode())
|
||||
.append("repairName", getRepairName())
|
||||
.append("processCode", getProcessCode())
|
||||
.append("isFlag", getIsFlag())
|
||||
.append("createdBy", getCreatedBy())
|
||||
.append("createdTime", getCreatedTime())
|
||||
.append("updatedBy", getUpdatedBy())
|
||||
.append("updatedTime", getUpdatedTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.aucma.report.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.aucma.report.domain.BasePdaRecord;
|
||||
|
||||
/**
|
||||
* PDA管理Mapper接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
public interface BasePdaRecordMapper
|
||||
{
|
||||
/**
|
||||
* 查询PDA管理
|
||||
*
|
||||
* @param objId PDA管理主键
|
||||
* @return PDA管理
|
||||
*/
|
||||
public BasePdaRecord selectBasePdaRecordByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询PDA管理列表
|
||||
*
|
||||
* @param basePdaRecord PDA管理
|
||||
* @return PDA管理集合
|
||||
*/
|
||||
public List<BasePdaRecord> selectBasePdaRecordList(BasePdaRecord basePdaRecord);
|
||||
|
||||
/**
|
||||
* 新增PDA管理
|
||||
*
|
||||
* @param basePdaRecord PDA管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBasePdaRecord(BasePdaRecord basePdaRecord);
|
||||
|
||||
/**
|
||||
* 修改PDA管理
|
||||
*
|
||||
* @param basePdaRecord PDA管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBasePdaRecord(BasePdaRecord basePdaRecord);
|
||||
|
||||
/**
|
||||
* 删除PDA管理
|
||||
*
|
||||
* @param objId PDA管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBasePdaRecordByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 批量删除PDA管理
|
||||
*
|
||||
* @param objIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBasePdaRecordByObjIds(Long[] objIds);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.aucma.report.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.aucma.report.domain.ReportRepairMeasures;
|
||||
|
||||
/**
|
||||
* 返修措施维护Mapper接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
public interface ReportRepairMeasuresMapper
|
||||
{
|
||||
/**
|
||||
* 查询返修措施维护
|
||||
*
|
||||
* @param objId 返修措施维护主键
|
||||
* @return 返修措施维护
|
||||
*/
|
||||
public ReportRepairMeasures selectReportRepairMeasuresByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询返修措施维护列表
|
||||
*
|
||||
* @param reportRepairMeasures 返修措施维护
|
||||
* @return 返修措施维护集合
|
||||
*/
|
||||
public List<ReportRepairMeasures> selectReportRepairMeasuresList(ReportRepairMeasures reportRepairMeasures);
|
||||
|
||||
/**
|
||||
* 新增返修措施维护
|
||||
*
|
||||
* @param reportRepairMeasures 返修措施维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertReportRepairMeasures(ReportRepairMeasures reportRepairMeasures);
|
||||
|
||||
/**
|
||||
* 修改返修措施维护
|
||||
*
|
||||
* @param reportRepairMeasures 返修措施维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateReportRepairMeasures(ReportRepairMeasures reportRepairMeasures);
|
||||
|
||||
/**
|
||||
* 删除返修措施维护
|
||||
*
|
||||
* @param objId 返修措施维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteReportRepairMeasuresByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 批量删除返修措施维护
|
||||
*
|
||||
* @param objIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteReportRepairMeasuresByObjIds(Long[] objIds);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.aucma.report.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.aucma.report.domain.BasePdaRecord;
|
||||
|
||||
/**
|
||||
* PDA管理Service接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
public interface IBasePdaRecordService
|
||||
{
|
||||
/**
|
||||
* 查询PDA管理
|
||||
*
|
||||
* @param objId PDA管理主键
|
||||
* @return PDA管理
|
||||
*/
|
||||
public BasePdaRecord selectBasePdaRecordByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询PDA管理列表
|
||||
*
|
||||
* @param basePdaRecord PDA管理
|
||||
* @return PDA管理集合
|
||||
*/
|
||||
public List<BasePdaRecord> selectBasePdaRecordList(BasePdaRecord basePdaRecord);
|
||||
|
||||
/**
|
||||
* 新增PDA管理
|
||||
*
|
||||
* @param basePdaRecord PDA管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertBasePdaRecord(BasePdaRecord basePdaRecord);
|
||||
|
||||
/**
|
||||
* 修改PDA管理
|
||||
*
|
||||
* @param basePdaRecord PDA管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateBasePdaRecord(BasePdaRecord basePdaRecord);
|
||||
|
||||
/**
|
||||
* 批量删除PDA管理
|
||||
*
|
||||
* @param objIds 需要删除的PDA管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBasePdaRecordByObjIds(Long[] objIds);
|
||||
|
||||
/**
|
||||
* 删除PDA管理信息
|
||||
*
|
||||
* @param objId PDA管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBasePdaRecordByObjId(Long objId);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.aucma.report.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.aucma.report.domain.ReportRepairMeasures;
|
||||
|
||||
/**
|
||||
* 返修措施维护Service接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
public interface IReportRepairMeasuresService
|
||||
{
|
||||
/**
|
||||
* 查询返修措施维护
|
||||
*
|
||||
* @param objId 返修措施维护主键
|
||||
* @return 返修措施维护
|
||||
*/
|
||||
public ReportRepairMeasures selectReportRepairMeasuresByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询返修措施维护列表
|
||||
*
|
||||
* @param reportRepairMeasures 返修措施维护
|
||||
* @return 返修措施维护集合
|
||||
*/
|
||||
public List<ReportRepairMeasures> selectReportRepairMeasuresList(ReportRepairMeasures reportRepairMeasures);
|
||||
|
||||
/**
|
||||
* 新增返修措施维护
|
||||
*
|
||||
* @param reportRepairMeasures 返修措施维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertReportRepairMeasures(ReportRepairMeasures reportRepairMeasures);
|
||||
|
||||
/**
|
||||
* 修改返修措施维护
|
||||
*
|
||||
* @param reportRepairMeasures 返修措施维护
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateReportRepairMeasures(ReportRepairMeasures reportRepairMeasures);
|
||||
|
||||
/**
|
||||
* 批量删除返修措施维护
|
||||
*
|
||||
* @param objIds 需要删除的返修措施维护主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteReportRepairMeasuresByObjIds(Long[] objIds);
|
||||
|
||||
/**
|
||||
* 删除返修措施维护信息
|
||||
*
|
||||
* @param objId 返修措施维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteReportRepairMeasuresByObjId(Long objId);
|
||||
}
|
||||
@ -0,0 +1,93 @@
|
||||
package com.aucma.report.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.aucma.report.mapper.BasePdaRecordMapper;
|
||||
import com.aucma.report.domain.BasePdaRecord;
|
||||
import com.aucma.report.service.IBasePdaRecordService;
|
||||
|
||||
/**
|
||||
* PDA管理Service业务层处理
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
@Service
|
||||
public class BasePdaRecordServiceImpl implements IBasePdaRecordService
|
||||
{
|
||||
@Autowired
|
||||
private BasePdaRecordMapper basePdaRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询PDA管理
|
||||
*
|
||||
* @param objId PDA管理主键
|
||||
* @return PDA管理
|
||||
*/
|
||||
@Override
|
||||
public BasePdaRecord selectBasePdaRecordByObjId(Long objId)
|
||||
{
|
||||
return basePdaRecordMapper.selectBasePdaRecordByObjId(objId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询PDA管理列表
|
||||
*
|
||||
* @param basePdaRecord PDA管理
|
||||
* @return PDA管理
|
||||
*/
|
||||
@Override
|
||||
public List<BasePdaRecord> selectBasePdaRecordList(BasePdaRecord basePdaRecord)
|
||||
{
|
||||
return basePdaRecordMapper.selectBasePdaRecordList(basePdaRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增PDA管理
|
||||
*
|
||||
* @param basePdaRecord PDA管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertBasePdaRecord(BasePdaRecord basePdaRecord)
|
||||
{
|
||||
return basePdaRecordMapper.insertBasePdaRecord(basePdaRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改PDA管理
|
||||
*
|
||||
* @param basePdaRecord PDA管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateBasePdaRecord(BasePdaRecord basePdaRecord)
|
||||
{
|
||||
return basePdaRecordMapper.updateBasePdaRecord(basePdaRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除PDA管理
|
||||
*
|
||||
* @param objIds 需要删除的PDA管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBasePdaRecordByObjIds(Long[] objIds)
|
||||
{
|
||||
return basePdaRecordMapper.deleteBasePdaRecordByObjIds(objIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除PDA管理信息
|
||||
*
|
||||
* @param objId PDA管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteBasePdaRecordByObjId(Long objId)
|
||||
{
|
||||
return basePdaRecordMapper.deleteBasePdaRecordByObjId(objId);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,93 @@
|
||||
package com.aucma.report.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.aucma.report.mapper.ReportRepairMeasuresMapper;
|
||||
import com.aucma.report.domain.ReportRepairMeasures;
|
||||
import com.aucma.report.service.IReportRepairMeasuresService;
|
||||
|
||||
/**
|
||||
* 返修措施维护Service业务层处理
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-11-21
|
||||
*/
|
||||
@Service
|
||||
public class ReportRepairMeasuresServiceImpl implements IReportRepairMeasuresService
|
||||
{
|
||||
@Autowired
|
||||
private ReportRepairMeasuresMapper reportRepairMeasuresMapper;
|
||||
|
||||
/**
|
||||
* 查询返修措施维护
|
||||
*
|
||||
* @param objId 返修措施维护主键
|
||||
* @return 返修措施维护
|
||||
*/
|
||||
@Override
|
||||
public ReportRepairMeasures selectReportRepairMeasuresByObjId(Long objId)
|
||||
{
|
||||
return reportRepairMeasuresMapper.selectReportRepairMeasuresByObjId(objId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询返修措施维护列表
|
||||
*
|
||||
* @param reportRepairMeasures 返修措施维护
|
||||
* @return 返修措施维护
|
||||
*/
|
||||
@Override
|
||||
public List<ReportRepairMeasures> selectReportRepairMeasuresList(ReportRepairMeasures reportRepairMeasures)
|
||||
{
|
||||
return reportRepairMeasuresMapper.selectReportRepairMeasuresList(reportRepairMeasures);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增返修措施维护
|
||||
*
|
||||
* @param reportRepairMeasures 返修措施维护
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertReportRepairMeasures(ReportRepairMeasures reportRepairMeasures)
|
||||
{
|
||||
return reportRepairMeasuresMapper.insertReportRepairMeasures(reportRepairMeasures);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改返修措施维护
|
||||
*
|
||||
* @param reportRepairMeasures 返修措施维护
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateReportRepairMeasures(ReportRepairMeasures reportRepairMeasures)
|
||||
{
|
||||
return reportRepairMeasuresMapper.updateReportRepairMeasures(reportRepairMeasures);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除返修措施维护
|
||||
*
|
||||
* @param objIds 需要删除的返修措施维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteReportRepairMeasuresByObjIds(Long[] objIds)
|
||||
{
|
||||
return reportRepairMeasuresMapper.deleteReportRepairMeasuresByObjIds(objIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除返修措施维护信息
|
||||
*
|
||||
* @param objId 返修措施维护主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteReportRepairMeasuresByObjId(Long objId)
|
||||
{
|
||||
return reportRepairMeasuresMapper.deleteReportRepairMeasuresByObjId(objId);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,112 @@
|
||||
<?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.aucma.report.mapper.BasePdaRecordMapper">
|
||||
|
||||
<resultMap type="BasePdaRecord" id="BasePdaRecordResult">
|
||||
<result property="objId" column="obj_id"/>
|
||||
<result property="pdaName" column="pda_name"/>
|
||||
<result property="serialCode" column="serial_code"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="procedureCode" column="procedure_code"/>
|
||||
<result property="isFlag" column="is_flag"/>
|
||||
<result property="createdBy" column="created_by"/>
|
||||
<result property="createdTime" column="created_time"/>
|
||||
<result property="updatedBy" column="updated_by"/>
|
||||
<result property="updatedTime" column="updated_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBasePdaRecordVo">
|
||||
select obj_id,
|
||||
pda_name,
|
||||
serial_code,
|
||||
remark,
|
||||
procedure_code,
|
||||
is_flag,
|
||||
created_by,
|
||||
created_time,
|
||||
updated_by,
|
||||
updated_time
|
||||
from base_pda_record
|
||||
</sql>
|
||||
|
||||
<select id="selectBasePdaRecordList" parameterType="BasePdaRecord" resultMap="BasePdaRecordResult">
|
||||
<include refid="selectBasePdaRecordVo"/>
|
||||
<where>
|
||||
<if test="pdaName != null and pdaName != ''">and pda_name like concat(concat('%', #{pdaName}), '%')</if>
|
||||
<if test="serialCode != null and serialCode != ''">and serial_code = #{serialCode}</if>
|
||||
<if test="procedureCode != null ">and procedure_code = #{procedureCode}</if>
|
||||
<if test="isFlag != null ">and is_flag = #{isFlag}</if>
|
||||
<if test="createdBy != null and createdBy != ''">and created_by = #{createdBy}</if>
|
||||
<if test="createdTime != null ">and created_time = #{createdTime}</if>
|
||||
<if test="updatedBy != null and updatedBy != ''">and updated_by = #{updatedBy}</if>
|
||||
<if test="updatedTime != null ">and updated_time = #{updatedTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBasePdaRecordByObjId" parameterType="Long" resultMap="BasePdaRecordResult">
|
||||
<include refid="selectBasePdaRecordVo"/>
|
||||
where obj_id = #{objId}
|
||||
</select>
|
||||
|
||||
<insert id="insertBasePdaRecord" parameterType="BasePdaRecord">
|
||||
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
|
||||
SELECT seq_base_pda_record.NEXTVAL as objId FROM DUAL
|
||||
</selectKey>
|
||||
insert into base_pda_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="objId != null">obj_id,</if>
|
||||
<if test="pdaName != null">pda_name,</if>
|
||||
<if test="serialCode != null">serial_code,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="procedureCode != null">procedure_code,</if>
|
||||
<if test="isFlag != null">is_flag,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="updatedBy != null">updated_by,</if>
|
||||
<if test="updatedTime != null">updated_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="objId != null">#{objId},</if>
|
||||
<if test="pdaName != null">#{pdaName},</if>
|
||||
<if test="serialCode != null">#{serialCode},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="procedureCode != null">#{procedureCode},</if>
|
||||
<if test="isFlag != null">#{isFlag},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="updatedBy != null">#{updatedBy},</if>
|
||||
<if test="updatedTime != null">#{updatedTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBasePdaRecord" parameterType="BasePdaRecord">
|
||||
update base_pda_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="pdaName != null">pda_name = #{pdaName},</if>
|
||||
<if test="serialCode != null">serial_code = #{serialCode},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="procedureCode != null">procedure_code = #{procedureCode},</if>
|
||||
<if test="isFlag != null">is_flag = #{isFlag},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
|
||||
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
|
||||
</trim>
|
||||
where obj_id = #{objId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBasePdaRecordByObjId" parameterType="Long">
|
||||
delete
|
||||
from base_pda_record
|
||||
where obj_id = #{objId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBasePdaRecordByObjIds" parameterType="String">
|
||||
delete from base_pda_record where obj_id in
|
||||
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
||||
#{objId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,110 @@
|
||||
<?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.aucma.report.mapper.ReportRepairMeasuresMapper">
|
||||
|
||||
<resultMap type="ReportRepairMeasures" id="ReportRepairMeasuresResult">
|
||||
<result property="objId" column="obj_id"/>
|
||||
<result property="repairCode" column="repair_code"/>
|
||||
<result property="repairName" column="repair_name"/>
|
||||
<result property="processCode" column="process_code"/>
|
||||
<result property="isFlag" column="is_flag"/>
|
||||
<result property="createdBy" column="created_by"/>
|
||||
<result property="createdTime" column="created_time"/>
|
||||
<result property="updatedBy" column="updated_by"/>
|
||||
<result property="updatedTime" column="updated_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectReportRepairMeasuresVo">
|
||||
select obj_id,
|
||||
repair_code,
|
||||
repair_name,
|
||||
process_code,
|
||||
is_flag,
|
||||
created_by,
|
||||
created_time,
|
||||
updated_by,
|
||||
updated_time
|
||||
from report_repair_measures
|
||||
</sql>
|
||||
|
||||
<select id="selectReportRepairMeasuresList" parameterType="ReportRepairMeasures"
|
||||
resultMap="ReportRepairMeasuresResult">
|
||||
<include refid="selectReportRepairMeasuresVo"/>
|
||||
<where>
|
||||
<if test="repairCode != null and repairCode != ''">and repair_code = #{repairCode}</if>
|
||||
<if test="repairName != null and repairName != ''">and repair_name like concat(concat('%', #{repairName}),
|
||||
'%')
|
||||
</if>
|
||||
<if test="processCode != null and processCode != ''">and process_code = #{processCode}</if>
|
||||
<if test="isFlag != null ">and is_flag = #{isFlag}</if>
|
||||
<if test="createdBy != null and createdBy != ''">and created_by = #{createdBy}</if>
|
||||
<if test="createdTime != null ">and created_time = #{createdTime}</if>
|
||||
<if test="updatedBy != null and updatedBy != ''">and updated_by = #{updatedBy}</if>
|
||||
<if test="updatedTime != null ">and updated_time = #{updatedTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectReportRepairMeasuresByObjId" parameterType="Long" resultMap="ReportRepairMeasuresResult">
|
||||
<include refid="selectReportRepairMeasuresVo"/>
|
||||
where obj_id = #{objId}
|
||||
</select>
|
||||
|
||||
<insert id="insertReportRepairMeasures" parameterType="ReportRepairMeasures">
|
||||
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
|
||||
SELECT seq_report_repair_measures.NEXTVAL as objId FROM DUAL
|
||||
</selectKey>
|
||||
insert into report_repair_measures
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="objId != null">obj_id,</if>
|
||||
<if test="repairCode != null">repair_code,</if>
|
||||
<if test="repairName != null">repair_name,</if>
|
||||
<if test="processCode != null">process_code,</if>
|
||||
<if test="isFlag != null">is_flag,</if>
|
||||
<if test="createdBy != null">created_by,</if>
|
||||
<if test="createdTime != null">created_time,</if>
|
||||
<if test="updatedBy != null">updated_by,</if>
|
||||
<if test="updatedTime != null">updated_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="objId != null">#{objId},</if>
|
||||
<if test="repairCode != null">#{repairCode},</if>
|
||||
<if test="repairName != null">#{repairName},</if>
|
||||
<if test="processCode != null">#{processCode},</if>
|
||||
<if test="isFlag != null">#{isFlag},</if>
|
||||
<if test="createdBy != null">#{createdBy},</if>
|
||||
<if test="createdTime != null">#{createdTime},</if>
|
||||
<if test="updatedBy != null">#{updatedBy},</if>
|
||||
<if test="updatedTime != null">#{updatedTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateReportRepairMeasures" parameterType="ReportRepairMeasures">
|
||||
update report_repair_measures
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="repairCode != null">repair_code = #{repairCode},</if>
|
||||
<if test="repairName != null">repair_name = #{repairName},</if>
|
||||
<if test="processCode != null">process_code = #{processCode},</if>
|
||||
<if test="isFlag != null">is_flag = #{isFlag},</if>
|
||||
<if test="createdBy != null">created_by = #{createdBy},</if>
|
||||
<if test="createdTime != null">created_time = #{createdTime},</if>
|
||||
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
|
||||
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
|
||||
</trim>
|
||||
where obj_id = #{objId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteReportRepairMeasuresByObjId" parameterType="Long">
|
||||
delete
|
||||
from report_repair_measures
|
||||
where obj_id = #{objId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteReportRepairMeasuresByObjIds" parameterType="String">
|
||||
delete from report_repair_measures where obj_id in
|
||||
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
||||
#{objId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue