功能
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
package com.ktg.mes.gys.controller;
|
||||
|
||||
import com.ktg.common.annotation.Log;
|
||||
import com.ktg.common.core.controller.BaseController;
|
||||
import com.ktg.common.core.domain.AjaxResult;
|
||||
import com.ktg.common.core.page.TableDataInfo;
|
||||
import com.ktg.common.enums.BusinessType;
|
||||
import com.ktg.common.utils.poi.ExcelUtil;
|
||||
import com.ktg.mes.gys.domain.SupplierAssessment;
|
||||
import com.ktg.mes.gys.service.ISupplierAssessmentService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 供应商评估Controller
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/md/assessment")
|
||||
public class SupplierAssessmentController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISupplierAssessmentService supplierAssessmentService;
|
||||
|
||||
/**
|
||||
* 查询供应商评估列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:assessment:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SupplierAssessment supplierAssessment)
|
||||
{
|
||||
startPage();
|
||||
List<SupplierAssessment> list = supplierAssessmentService.selectSupplierAssessmentList(supplierAssessment);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出供应商评估列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:assessment:export')")
|
||||
@Log(title = "供应商评估", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SupplierAssessment supplierAssessment)
|
||||
{
|
||||
List<SupplierAssessment> list = supplierAssessmentService.selectSupplierAssessmentList(supplierAssessment);
|
||||
ExcelUtil<SupplierAssessment> util = new ExcelUtil<SupplierAssessment>(SupplierAssessment.class);
|
||||
util.exportExcel(response, list, "供应商评估数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取供应商评估详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:assessment:query')")
|
||||
@GetMapping(value = "/{assessmentId}")
|
||||
public AjaxResult getInfo(@PathVariable("assessmentId") Long assessmentId)
|
||||
{
|
||||
return AjaxResult.success(supplierAssessmentService.selectSupplierAssessmentByAssessmentId(assessmentId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增供应商评估
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:assessment:add')")
|
||||
@Log(title = "供应商评估", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SupplierAssessment supplierAssessment)
|
||||
{
|
||||
return toAjax(supplierAssessmentService.insertSupplierAssessment(supplierAssessment));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改供应商评估
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:assessment:edit')")
|
||||
@Log(title = "供应商评估", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SupplierAssessment supplierAssessment)
|
||||
{
|
||||
return toAjax(supplierAssessmentService.updateSupplierAssessment(supplierAssessment));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除供应商评估
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:assessment:remove')")
|
||||
@Log(title = "供应商评估", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{assessmentIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] assessmentIds)
|
||||
{
|
||||
return toAjax(supplierAssessmentService.deleteSupplierAssessmentByAssessmentIds(assessmentIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.ktg.mes.gys.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.ktg.common.utils.poi.ExcelUtil;
|
||||
import com.ktg.mes.gys.domain.SupplierCategory;
|
||||
import com.ktg.mes.gys.service.ISupplierCategoryService;
|
||||
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.ktg.common.annotation.Log;
|
||||
import com.ktg.common.core.controller.BaseController;
|
||||
import com.ktg.common.core.domain.AjaxResult;
|
||||
import com.ktg.common.enums.BusinessType;
|
||||
|
||||
import com.ktg.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 供应商类别Controller
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/md/category")
|
||||
public class SupplierCategoryController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISupplierCategoryService supplierCategoryService;
|
||||
|
||||
/**
|
||||
* 查询供应商类别列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:category:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SupplierCategory supplierCategory)
|
||||
{
|
||||
startPage();
|
||||
List<SupplierCategory> list = supplierCategoryService.selectSupplierCategoryList(supplierCategory);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出供应商类别列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:category:export')")
|
||||
@Log(title = "供应商类别", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SupplierCategory supplierCategory)
|
||||
{
|
||||
List<SupplierCategory> list = supplierCategoryService.selectSupplierCategoryList(supplierCategory);
|
||||
ExcelUtil<SupplierCategory> util = new ExcelUtil<SupplierCategory>(SupplierCategory.class);
|
||||
util.exportExcel(response, list, "供应商类别数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取供应商类别详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:category:query')")
|
||||
@GetMapping(value = "/{categoryId}")
|
||||
public AjaxResult getInfo(@PathVariable("categoryId") Long categoryId)
|
||||
{
|
||||
return AjaxResult.success(supplierCategoryService.selectSupplierCategoryByCategoryId(categoryId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增供应商类别
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:category:add')")
|
||||
@Log(title = "供应商类别", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SupplierCategory supplierCategory)
|
||||
{
|
||||
return toAjax(supplierCategoryService.insertSupplierCategory(supplierCategory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改供应商类别
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:category:edit')")
|
||||
@Log(title = "供应商类别", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SupplierCategory supplierCategory)
|
||||
{
|
||||
return toAjax(supplierCategoryService.updateSupplierCategory(supplierCategory));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除供应商类别
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:category:remove')")
|
||||
@Log(title = "供应商类别", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{categoryIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] categoryIds)
|
||||
{
|
||||
return toAjax(supplierCategoryService.deleteSupplierCategoryByCategoryIds(categoryIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.ktg.mes.gys.controller;
|
||||
|
||||
import com.ktg.common.annotation.Log;
|
||||
import com.ktg.common.core.controller.BaseController;
|
||||
import com.ktg.common.core.domain.AjaxResult;
|
||||
import com.ktg.common.core.page.TableDataInfo;
|
||||
import com.ktg.common.enums.BusinessType;
|
||||
import com.ktg.common.utils.poi.ExcelUtil;
|
||||
import com.ktg.mes.gys.domain.SupplierCooperationRecord;
|
||||
import com.ktg.mes.gys.service.ISupplierCooperationRecordService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 供应商合作记录Controller
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/md/record")
|
||||
public class SupplierCooperationRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISupplierCooperationRecordService supplierCooperationRecordService;
|
||||
|
||||
/**
|
||||
* 查询供应商合作记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:record:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SupplierCooperationRecord supplierCooperationRecord)
|
||||
{
|
||||
startPage();
|
||||
List<SupplierCooperationRecord> list = supplierCooperationRecordService.selectSupplierCooperationRecordList(supplierCooperationRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出供应商合作记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:record:export')")
|
||||
@Log(title = "供应商合作记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SupplierCooperationRecord supplierCooperationRecord)
|
||||
{
|
||||
List<SupplierCooperationRecord> list = supplierCooperationRecordService.selectSupplierCooperationRecordList(supplierCooperationRecord);
|
||||
ExcelUtil<SupplierCooperationRecord> util = new ExcelUtil<SupplierCooperationRecord>(SupplierCooperationRecord.class);
|
||||
util.exportExcel(response, list, "供应商合作记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取供应商合作记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:record:query')")
|
||||
@GetMapping(value = "/{recordId}")
|
||||
public AjaxResult getInfo(@PathVariable("recordId") Long recordId)
|
||||
{
|
||||
return AjaxResult.success(supplierCooperationRecordService.selectSupplierCooperationRecordByRecordId(recordId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增供应商合作记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:record:add')")
|
||||
@Log(title = "供应商合作记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SupplierCooperationRecord supplierCooperationRecord)
|
||||
{
|
||||
return toAjax(supplierCooperationRecordService.insertSupplierCooperationRecord(supplierCooperationRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改供应商合作记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:record:edit')")
|
||||
@Log(title = "供应商合作记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SupplierCooperationRecord supplierCooperationRecord)
|
||||
{
|
||||
return toAjax(supplierCooperationRecordService.updateSupplierCooperationRecord(supplierCooperationRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除供应商合作记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:record:remove')")
|
||||
@Log(title = "供应商合作记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{recordIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] recordIds)
|
||||
{
|
||||
return toAjax(supplierCooperationRecordService.deleteSupplierCooperationRecordByRecordIds(recordIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
package com.ktg.mes.gys.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.ktg.common.utils.poi.ExcelUtil;
|
||||
import com.ktg.mes.gys.domain.SupplierQualification;
|
||||
import com.ktg.mes.gys.service.ISupplierQualificationService;
|
||||
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.ktg.common.annotation.Log;
|
||||
import com.ktg.common.core.controller.BaseController;
|
||||
import com.ktg.common.core.domain.AjaxResult;
|
||||
import com.ktg.common.enums.BusinessType;
|
||||
import com.ktg.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 供应商资质Controller
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/md/qualification")
|
||||
public class SupplierQualificationController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISupplierQualificationService supplierQualificationService;
|
||||
|
||||
/**
|
||||
* 查询供应商资质列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:qualification:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SupplierQualification supplierQualification)
|
||||
{
|
||||
startPage();
|
||||
List<SupplierQualification> list = supplierQualificationService.selectSupplierQualificationList(supplierQualification);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出供应商资质列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:qualification:export')")
|
||||
@Log(title = "供应商资质", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SupplierQualification supplierQualification)
|
||||
{
|
||||
List<SupplierQualification> list = supplierQualificationService.selectSupplierQualificationList(supplierQualification);
|
||||
ExcelUtil<SupplierQualification> util = new ExcelUtil<SupplierQualification>(SupplierQualification.class);
|
||||
util.exportExcel(response, list, "供应商资质数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取供应商资质详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:qualification:query')")
|
||||
@GetMapping(value = "/{qualId}")
|
||||
public AjaxResult getInfo(@PathVariable("qualId") Long qualId)
|
||||
{
|
||||
return AjaxResult.success(supplierQualificationService.selectSupplierQualificationByQualId(qualId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增供应商资质
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:qualification:add')")
|
||||
@Log(title = "供应商资质", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SupplierQualification supplierQualification)
|
||||
{
|
||||
return toAjax(supplierQualificationService.insertSupplierQualification(supplierQualification));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改供应商资质
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:qualification:edit')")
|
||||
@Log(title = "供应商资质", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SupplierQualification supplierQualification)
|
||||
{
|
||||
return toAjax(supplierQualificationService.updateSupplierQualification(supplierQualification));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除供应商资质
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('md:qualification:remove')")
|
||||
@Log(title = "供应商资质", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{qualIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] qualIds)
|
||||
{
|
||||
return toAjax(supplierQualificationService.deleteSupplierQualificationByQualIds(qualIds));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
package com.ktg.mes.gys.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.ktg.common.annotation.Excel;
|
||||
import com.ktg.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 供应商评估对象 supplier_assessment
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
public class SupplierAssessment extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 评估ID */
|
||||
private Long assessmentId;
|
||||
|
||||
/** 供应商名称 */
|
||||
@Excel(name = "供应商名称")
|
||||
private String supplierName;
|
||||
|
||||
/** 供应商ID */
|
||||
@Excel(name = "供应商ID")
|
||||
private Long supplierId;
|
||||
|
||||
/** 评估时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "评估时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date assessmentTime;
|
||||
|
||||
/** 评分 */
|
||||
@Excel(name = "评分")
|
||||
private String score;
|
||||
|
||||
/** 评估备注 */
|
||||
@Excel(name = "评估备注")
|
||||
private String remarks;
|
||||
|
||||
/** 删除标记,0未删除,1已删除 */
|
||||
@Excel(name = "删除标记,0未删除,1已删除")
|
||||
private String isDeleted;
|
||||
|
||||
public void setAssessmentId(Long assessmentId)
|
||||
{
|
||||
this.assessmentId = assessmentId;
|
||||
}
|
||||
|
||||
public Long getAssessmentId()
|
||||
{
|
||||
return assessmentId;
|
||||
}
|
||||
public void setSupplierName(String supplierName)
|
||||
{
|
||||
this.supplierName = supplierName;
|
||||
}
|
||||
|
||||
public String getSupplierName()
|
||||
{
|
||||
return supplierName;
|
||||
}
|
||||
public void setSupplierId(Long supplierId)
|
||||
{
|
||||
this.supplierId = supplierId;
|
||||
}
|
||||
|
||||
public Long getSupplierId()
|
||||
{
|
||||
return supplierId;
|
||||
}
|
||||
public void setAssessmentTime(Date assessmentTime)
|
||||
{
|
||||
this.assessmentTime = assessmentTime;
|
||||
}
|
||||
|
||||
public Date getAssessmentTime()
|
||||
{
|
||||
return assessmentTime;
|
||||
}
|
||||
public void setScore(String score)
|
||||
{
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
public String getScore()
|
||||
{
|
||||
return score;
|
||||
}
|
||||
public void setRemarks(String remarks)
|
||||
{
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public String getRemarks()
|
||||
{
|
||||
return remarks;
|
||||
}
|
||||
public void setIsDeleted(String isDeleted)
|
||||
{
|
||||
this.isDeleted = isDeleted;
|
||||
}
|
||||
|
||||
public String getIsDeleted()
|
||||
{
|
||||
return isDeleted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("assessmentId", getAssessmentId())
|
||||
.append("supplierName", getSupplierName())
|
||||
.append("supplierId", getSupplierId())
|
||||
.append("assessmentTime", getAssessmentTime())
|
||||
.append("score", getScore())
|
||||
.append("remarks", getRemarks())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("isDeleted", getIsDeleted())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package com.ktg.mes.gys.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ktg.common.annotation.Excel;
|
||||
import com.ktg.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 供应商类别对象 supplier_category
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
public class SupplierCategory extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 类别ID */
|
||||
private Long categoryId;
|
||||
|
||||
/** 类别名称 */
|
||||
@Excel(name = "类别名称")
|
||||
private String categoryName;
|
||||
|
||||
/** 类别描述 */
|
||||
@Excel(name = "类别描述")
|
||||
private String description;
|
||||
|
||||
/** 删除标记,0未删除,1已删除 */
|
||||
@Excel(name = "删除标记,0未删除,1已删除")
|
||||
private String isDeleted;
|
||||
|
||||
public void setCategoryId(Long categoryId)
|
||||
{
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getCategoryId()
|
||||
{
|
||||
return categoryId;
|
||||
}
|
||||
public void setCategoryName(String categoryName)
|
||||
{
|
||||
this.categoryName = categoryName;
|
||||
}
|
||||
|
||||
public String getCategoryName()
|
||||
{
|
||||
return categoryName;
|
||||
}
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
public void setIsDeleted(String isDeleted)
|
||||
{
|
||||
this.isDeleted = isDeleted;
|
||||
}
|
||||
|
||||
public String getIsDeleted()
|
||||
{
|
||||
return isDeleted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("categoryId", getCategoryId())
|
||||
.append("categoryName", getCategoryName())
|
||||
.append("description", getDescription())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("isDeleted", getIsDeleted())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
package com.ktg.mes.gys.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.ktg.common.annotation.Excel;
|
||||
import com.ktg.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 供应商合作记录对象 supplier_cooperation_record
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
public class SupplierCooperationRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 记录ID */
|
||||
private Long recordId;
|
||||
|
||||
/** 供应商名称 */
|
||||
@Excel(name = "供应商名称")
|
||||
private String supplierName;
|
||||
|
||||
/** 供应商ID */
|
||||
@Excel(name = "供应商ID")
|
||||
private Long supplierId;
|
||||
|
||||
/** 合作时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "合作时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date cooperationTime;
|
||||
|
||||
/** 合作内容 */
|
||||
@Excel(name = " 合作内容")
|
||||
private String content;
|
||||
|
||||
/** 合作金额 */
|
||||
@Excel(name = " 合作金额")
|
||||
private Long amount;
|
||||
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remarks;
|
||||
|
||||
/** 删除标记,0未删除,1已删除 */
|
||||
@Excel(name = "删除标记,0未删除,1已删除")
|
||||
private String isDeleted;
|
||||
|
||||
public void setRecordId(Long recordId)
|
||||
{
|
||||
this.recordId = recordId;
|
||||
}
|
||||
|
||||
public Long getRecordId()
|
||||
{
|
||||
return recordId;
|
||||
}
|
||||
public void setSupplierName(String supplierName)
|
||||
{
|
||||
this.supplierName = supplierName;
|
||||
}
|
||||
|
||||
public String getSupplierName()
|
||||
{
|
||||
return supplierName;
|
||||
}
|
||||
public void setSupplierId(Long supplierId)
|
||||
{
|
||||
this.supplierId = supplierId;
|
||||
}
|
||||
|
||||
public Long getSupplierId()
|
||||
{
|
||||
return supplierId;
|
||||
}
|
||||
public void setCooperationTime(Date cooperationTime)
|
||||
{
|
||||
this.cooperationTime = cooperationTime;
|
||||
}
|
||||
|
||||
public Date getCooperationTime()
|
||||
{
|
||||
return cooperationTime;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setAmount(Long amount)
|
||||
{
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public Long getAmount()
|
||||
{
|
||||
return amount;
|
||||
}
|
||||
public void setRemarks(String remarks)
|
||||
{
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public String getRemarks()
|
||||
{
|
||||
return remarks;
|
||||
}
|
||||
public void setIsDeleted(String isDeleted)
|
||||
{
|
||||
this.isDeleted = isDeleted;
|
||||
}
|
||||
|
||||
public String getIsDeleted()
|
||||
{
|
||||
return isDeleted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("recordId", getRecordId())
|
||||
.append("supplierName", getSupplierName())
|
||||
.append("supplierId", getSupplierId())
|
||||
.append("cooperationTime", getCooperationTime())
|
||||
.append("content", getContent())
|
||||
.append("amount", getAmount())
|
||||
.append("remarks", getRemarks())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("isDeleted", getIsDeleted())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
package com.ktg.mes.gys.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.ktg.common.annotation.Excel;
|
||||
import com.ktg.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 供应商资质对象 supplier_qualification
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
public class SupplierQualification extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 资质ID */
|
||||
private Long qualId;
|
||||
|
||||
/** 供应商ID */
|
||||
@Excel(name = "供应商ID")
|
||||
private Long supplierId;
|
||||
|
||||
/** 资质名称 */
|
||||
@Excel(name = "资质名称")
|
||||
private String qualName;
|
||||
|
||||
/** 资质类型 */
|
||||
@Excel(name = "资质类型")
|
||||
private String qualType;
|
||||
|
||||
/** 有效期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date validDate;
|
||||
|
||||
/** 附件 */
|
||||
@Excel(name = "附件")
|
||||
private String filePath;
|
||||
|
||||
/** 删除标记,0未删除,1已删除 */
|
||||
@Excel(name = "删除标记,0未删除,1已删除")
|
||||
private String isDeleted;
|
||||
|
||||
public void setQualId(Long qualId)
|
||||
{
|
||||
this.qualId = qualId;
|
||||
}
|
||||
|
||||
public Long getQualId()
|
||||
{
|
||||
return qualId;
|
||||
}
|
||||
public void setSupplierId(Long supplierId)
|
||||
{
|
||||
this.supplierId = supplierId;
|
||||
}
|
||||
|
||||
public Long getSupplierId()
|
||||
{
|
||||
return supplierId;
|
||||
}
|
||||
public void setQualName(String qualName)
|
||||
{
|
||||
this.qualName = qualName;
|
||||
}
|
||||
|
||||
public String getQualName()
|
||||
{
|
||||
return qualName;
|
||||
}
|
||||
public void setQualType(String qualType)
|
||||
{
|
||||
this.qualType = qualType;
|
||||
}
|
||||
|
||||
public String getQualType()
|
||||
{
|
||||
return qualType;
|
||||
}
|
||||
public void setValidDate(Date validDate)
|
||||
{
|
||||
this.validDate = validDate;
|
||||
}
|
||||
|
||||
public Date getValidDate()
|
||||
{
|
||||
return validDate;
|
||||
}
|
||||
public void setFilePath(String filePath)
|
||||
{
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
public String getFilePath()
|
||||
{
|
||||
return filePath;
|
||||
}
|
||||
public void setIsDeleted(String isDeleted)
|
||||
{
|
||||
this.isDeleted = isDeleted;
|
||||
}
|
||||
|
||||
public String getIsDeleted()
|
||||
{
|
||||
return isDeleted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("qualId", getQualId())
|
||||
.append("supplierId", getSupplierId())
|
||||
.append("qualName", getQualName())
|
||||
.append("qualType", getQualType())
|
||||
.append("validDate", getValidDate())
|
||||
.append("filePath", getFilePath())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("isDeleted", getIsDeleted())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ktg.mes.gys.mapper;
|
||||
|
||||
import com.ktg.mes.gys.domain.SupplierAssessment;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商评估Mapper接口
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
public interface SupplierAssessmentMapper
|
||||
{
|
||||
/**
|
||||
* 查询供应商评估
|
||||
*
|
||||
* @param assessmentId 供应商评估主键
|
||||
* @return 供应商评估
|
||||
*/
|
||||
public SupplierAssessment selectSupplierAssessmentByAssessmentId(Long assessmentId);
|
||||
|
||||
/**
|
||||
* 查询供应商评估列表
|
||||
*
|
||||
* @param supplierAssessment 供应商评估
|
||||
* @return 供应商评估集合
|
||||
*/
|
||||
public List<SupplierAssessment> selectSupplierAssessmentList(SupplierAssessment supplierAssessment);
|
||||
|
||||
/**
|
||||
* 新增供应商评估
|
||||
*
|
||||
* @param supplierAssessment 供应商评估
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplierAssessment(SupplierAssessment supplierAssessment);
|
||||
|
||||
/**
|
||||
* 修改供应商评估
|
||||
*
|
||||
* @param supplierAssessment 供应商评估
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplierAssessment(SupplierAssessment supplierAssessment);
|
||||
|
||||
/**
|
||||
* 删除供应商评估
|
||||
*
|
||||
* @param assessmentId 供应商评估主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierAssessmentByAssessmentId(Long assessmentId);
|
||||
|
||||
/**
|
||||
* 批量删除供应商评估
|
||||
*
|
||||
* @param assessmentIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierAssessmentByAssessmentIds(Long[] assessmentIds);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ktg.mes.gys.mapper;
|
||||
|
||||
import com.ktg.mes.gys.domain.SupplierCategory;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商类别Mapper接口
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
public interface SupplierCategoryMapper
|
||||
{
|
||||
/**
|
||||
* 查询供应商类别
|
||||
*
|
||||
* @param categoryId 供应商类别主键
|
||||
* @return 供应商类别
|
||||
*/
|
||||
public SupplierCategory selectSupplierCategoryByCategoryId(Long categoryId);
|
||||
|
||||
/**
|
||||
* 查询供应商类别列表
|
||||
*
|
||||
* @param supplierCategory 供应商类别
|
||||
* @return 供应商类别集合
|
||||
*/
|
||||
public List<SupplierCategory> selectSupplierCategoryList(SupplierCategory supplierCategory);
|
||||
|
||||
/**
|
||||
* 新增供应商类别
|
||||
*
|
||||
* @param supplierCategory 供应商类别
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplierCategory(SupplierCategory supplierCategory);
|
||||
|
||||
/**
|
||||
* 修改供应商类别
|
||||
*
|
||||
* @param supplierCategory 供应商类别
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplierCategory(SupplierCategory supplierCategory);
|
||||
|
||||
/**
|
||||
* 删除供应商类别
|
||||
*
|
||||
* @param categoryId 供应商类别主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierCategoryByCategoryId(Long categoryId);
|
||||
|
||||
/**
|
||||
* 批量删除供应商类别
|
||||
*
|
||||
* @param categoryIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierCategoryByCategoryIds(Long[] categoryIds);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ktg.mes.gys.mapper;
|
||||
|
||||
import com.ktg.mes.gys.domain.SupplierCooperationRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商合作记录Mapper接口
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
public interface SupplierCooperationRecordMapper
|
||||
{
|
||||
/**
|
||||
* 查询供应商合作记录
|
||||
*
|
||||
* @param recordId 供应商合作记录主键
|
||||
* @return 供应商合作记录
|
||||
*/
|
||||
public SupplierCooperationRecord selectSupplierCooperationRecordByRecordId(Long recordId);
|
||||
|
||||
/**
|
||||
* 查询供应商合作记录列表
|
||||
*
|
||||
* @param supplierCooperationRecord 供应商合作记录
|
||||
* @return 供应商合作记录集合
|
||||
*/
|
||||
public List<SupplierCooperationRecord> selectSupplierCooperationRecordList(SupplierCooperationRecord supplierCooperationRecord);
|
||||
|
||||
/**
|
||||
* 新增供应商合作记录
|
||||
*
|
||||
* @param supplierCooperationRecord 供应商合作记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplierCooperationRecord(SupplierCooperationRecord supplierCooperationRecord);
|
||||
|
||||
/**
|
||||
* 修改供应商合作记录
|
||||
*
|
||||
* @param supplierCooperationRecord 供应商合作记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplierCooperationRecord(SupplierCooperationRecord supplierCooperationRecord);
|
||||
|
||||
/**
|
||||
* 删除供应商合作记录
|
||||
*
|
||||
* @param recordId 供应商合作记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierCooperationRecordByRecordId(Long recordId);
|
||||
|
||||
/**
|
||||
* 批量删除供应商合作记录
|
||||
*
|
||||
* @param recordIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierCooperationRecordByRecordIds(Long[] recordIds);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ktg.mes.gys.mapper;
|
||||
|
||||
import com.ktg.mes.gys.domain.SupplierQualification;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商资质Mapper接口
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
public interface SupplierQualificationMapper
|
||||
{
|
||||
/**
|
||||
* 查询供应商资质
|
||||
*
|
||||
* @param qualId 供应商资质主键
|
||||
* @return 供应商资质
|
||||
*/
|
||||
public SupplierQualification selectSupplierQualificationByQualId(Long qualId);
|
||||
|
||||
/**
|
||||
* 查询供应商资质列表
|
||||
*
|
||||
* @param supplierQualification 供应商资质
|
||||
* @return 供应商资质集合
|
||||
*/
|
||||
public List<SupplierQualification> selectSupplierQualificationList(SupplierQualification supplierQualification);
|
||||
|
||||
/**
|
||||
* 新增供应商资质
|
||||
*
|
||||
* @param supplierQualification 供应商资质
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplierQualification(SupplierQualification supplierQualification);
|
||||
|
||||
/**
|
||||
* 修改供应商资质
|
||||
*
|
||||
* @param supplierQualification 供应商资质
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplierQualification(SupplierQualification supplierQualification);
|
||||
|
||||
/**
|
||||
* 删除供应商资质
|
||||
*
|
||||
* @param qualId 供应商资质主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierQualificationByQualId(Long qualId);
|
||||
|
||||
/**
|
||||
* 批量删除供应商资质
|
||||
*
|
||||
* @param qualIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierQualificationByQualIds(Long[] qualIds);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ktg.mes.gys.service;
|
||||
|
||||
import com.ktg.mes.gys.domain.SupplierAssessment;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商评估Service接口
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
public interface ISupplierAssessmentService
|
||||
{
|
||||
/**
|
||||
* 查询供应商评估
|
||||
*
|
||||
* @param assessmentId 供应商评估主键
|
||||
* @return 供应商评估
|
||||
*/
|
||||
public SupplierAssessment selectSupplierAssessmentByAssessmentId(Long assessmentId);
|
||||
|
||||
/**
|
||||
* 查询供应商评估列表
|
||||
*
|
||||
* @param supplierAssessment 供应商评估
|
||||
* @return 供应商评估集合
|
||||
*/
|
||||
public List<SupplierAssessment> selectSupplierAssessmentList(SupplierAssessment supplierAssessment);
|
||||
|
||||
/**
|
||||
* 新增供应商评估
|
||||
*
|
||||
* @param supplierAssessment 供应商评估
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplierAssessment(SupplierAssessment supplierAssessment);
|
||||
|
||||
/**
|
||||
* 修改供应商评估
|
||||
*
|
||||
* @param supplierAssessment 供应商评估
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplierAssessment(SupplierAssessment supplierAssessment);
|
||||
|
||||
/**
|
||||
* 批量删除供应商评估
|
||||
*
|
||||
* @param assessmentIds 需要删除的供应商评估主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierAssessmentByAssessmentIds(Long[] assessmentIds);
|
||||
|
||||
/**
|
||||
* 删除供应商评估信息
|
||||
*
|
||||
* @param assessmentId 供应商评估主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierAssessmentByAssessmentId(Long assessmentId);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ktg.mes.gys.service;
|
||||
|
||||
import com.ktg.mes.gys.domain.SupplierCategory;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商类别Service接口
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
public interface ISupplierCategoryService
|
||||
{
|
||||
/**
|
||||
* 查询供应商类别
|
||||
*
|
||||
* @param categoryId 供应商类别主键
|
||||
* @return 供应商类别
|
||||
*/
|
||||
public SupplierCategory selectSupplierCategoryByCategoryId(Long categoryId);
|
||||
|
||||
/**
|
||||
* 查询供应商类别列表
|
||||
*
|
||||
* @param supplierCategory 供应商类别
|
||||
* @return 供应商类别集合
|
||||
*/
|
||||
public List<SupplierCategory> selectSupplierCategoryList(SupplierCategory supplierCategory);
|
||||
|
||||
/**
|
||||
* 新增供应商类别
|
||||
*
|
||||
* @param supplierCategory 供应商类别
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplierCategory(SupplierCategory supplierCategory);
|
||||
|
||||
/**
|
||||
* 修改供应商类别
|
||||
*
|
||||
* @param supplierCategory 供应商类别
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplierCategory(SupplierCategory supplierCategory);
|
||||
|
||||
/**
|
||||
* 批量删除供应商类别
|
||||
*
|
||||
* @param categoryIds 需要删除的供应商类别主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierCategoryByCategoryIds(Long[] categoryIds);
|
||||
|
||||
/**
|
||||
* 删除供应商类别信息
|
||||
*
|
||||
* @param categoryId 供应商类别主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierCategoryByCategoryId(Long categoryId);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ktg.mes.gys.service;
|
||||
|
||||
import com.ktg.mes.gys.domain.SupplierCooperationRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商合作记录Service接口
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
public interface ISupplierCooperationRecordService
|
||||
{
|
||||
/**
|
||||
* 查询供应商合作记录
|
||||
*
|
||||
* @param recordId 供应商合作记录主键
|
||||
* @return 供应商合作记录
|
||||
*/
|
||||
public SupplierCooperationRecord selectSupplierCooperationRecordByRecordId(Long recordId);
|
||||
|
||||
/**
|
||||
* 查询供应商合作记录列表
|
||||
*
|
||||
* @param supplierCooperationRecord 供应商合作记录
|
||||
* @return 供应商合作记录集合
|
||||
*/
|
||||
public List<SupplierCooperationRecord> selectSupplierCooperationRecordList(SupplierCooperationRecord supplierCooperationRecord);
|
||||
|
||||
/**
|
||||
* 新增供应商合作记录
|
||||
*
|
||||
* @param supplierCooperationRecord 供应商合作记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplierCooperationRecord(SupplierCooperationRecord supplierCooperationRecord);
|
||||
|
||||
/**
|
||||
* 修改供应商合作记录
|
||||
*
|
||||
* @param supplierCooperationRecord 供应商合作记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplierCooperationRecord(SupplierCooperationRecord supplierCooperationRecord);
|
||||
|
||||
/**
|
||||
* 批量删除供应商合作记录
|
||||
*
|
||||
* @param recordIds 需要删除的供应商合作记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierCooperationRecordByRecordIds(Long[] recordIds);
|
||||
|
||||
/**
|
||||
* 删除供应商合作记录信息
|
||||
*
|
||||
* @param recordId 供应商合作记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierCooperationRecordByRecordId(Long recordId);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ktg.mes.gys.service;
|
||||
|
||||
import com.ktg.mes.gys.domain.SupplierQualification;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商资质Service接口
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
public interface ISupplierQualificationService
|
||||
{
|
||||
/**
|
||||
* 查询供应商资质
|
||||
*
|
||||
* @param qualId 供应商资质主键
|
||||
* @return 供应商资质
|
||||
*/
|
||||
public SupplierQualification selectSupplierQualificationByQualId(Long qualId);
|
||||
|
||||
/**
|
||||
* 查询供应商资质列表
|
||||
*
|
||||
* @param supplierQualification 供应商资质
|
||||
* @return 供应商资质集合
|
||||
*/
|
||||
public List<SupplierQualification> selectSupplierQualificationList(SupplierQualification supplierQualification);
|
||||
|
||||
/**
|
||||
* 新增供应商资质
|
||||
*
|
||||
* @param supplierQualification 供应商资质
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSupplierQualification(SupplierQualification supplierQualification);
|
||||
|
||||
/**
|
||||
* 修改供应商资质
|
||||
*
|
||||
* @param supplierQualification 供应商资质
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSupplierQualification(SupplierQualification supplierQualification);
|
||||
|
||||
/**
|
||||
* 批量删除供应商资质
|
||||
*
|
||||
* @param qualIds 需要删除的供应商资质主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierQualificationByQualIds(Long[] qualIds);
|
||||
|
||||
/**
|
||||
* 删除供应商资质信息
|
||||
*
|
||||
* @param qualId 供应商资质主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSupplierQualificationByQualId(Long qualId);
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.ktg.mes.gys.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ktg.common.utils.DateUtils;
|
||||
import com.ktg.mes.gys.domain.SupplierAssessment;
|
||||
import com.ktg.mes.gys.mapper.SupplierAssessmentMapper;
|
||||
import com.ktg.mes.gys.service.ISupplierAssessmentService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商评估Service业务层处理
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
@Service
|
||||
public class SupplierAssessmentServiceImpl implements ISupplierAssessmentService
|
||||
{
|
||||
@Autowired
|
||||
private SupplierAssessmentMapper supplierAssessmentMapper;
|
||||
|
||||
/**
|
||||
* 查询供应商评估
|
||||
*
|
||||
* @param assessmentId 供应商评估主键
|
||||
* @return 供应商评估
|
||||
*/
|
||||
@Override
|
||||
public SupplierAssessment selectSupplierAssessmentByAssessmentId(Long assessmentId)
|
||||
{
|
||||
return supplierAssessmentMapper.selectSupplierAssessmentByAssessmentId(assessmentId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询供应商评估列表
|
||||
*
|
||||
* @param supplierAssessment 供应商评估
|
||||
* @return 供应商评估
|
||||
*/
|
||||
@Override
|
||||
public List<SupplierAssessment> selectSupplierAssessmentList(SupplierAssessment supplierAssessment)
|
||||
{
|
||||
return supplierAssessmentMapper.selectSupplierAssessmentList(supplierAssessment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增供应商评估
|
||||
*
|
||||
* @param supplierAssessment 供应商评估
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSupplierAssessment(SupplierAssessment supplierAssessment)
|
||||
{
|
||||
supplierAssessment.setCreateTime(DateUtils.getNowDate());
|
||||
return supplierAssessmentMapper.insertSupplierAssessment(supplierAssessment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改供应商评估
|
||||
*
|
||||
* @param supplierAssessment 供应商评估
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSupplierAssessment(SupplierAssessment supplierAssessment)
|
||||
{
|
||||
supplierAssessment.setUpdateTime(DateUtils.getNowDate());
|
||||
return supplierAssessmentMapper.updateSupplierAssessment(supplierAssessment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除供应商评估
|
||||
*
|
||||
* @param assessmentIds 需要删除的供应商评估主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplierAssessmentByAssessmentIds(Long[] assessmentIds)
|
||||
{
|
||||
return supplierAssessmentMapper.deleteSupplierAssessmentByAssessmentIds(assessmentIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除供应商评估信息
|
||||
*
|
||||
* @param assessmentId 供应商评估主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplierAssessmentByAssessmentId(Long assessmentId)
|
||||
{
|
||||
return supplierAssessmentMapper.deleteSupplierAssessmentByAssessmentId(assessmentId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.ktg.mes.gys.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ktg.common.utils.DateUtils;
|
||||
import com.ktg.mes.gys.domain.SupplierCategory;
|
||||
import com.ktg.mes.gys.mapper.SupplierCategoryMapper;
|
||||
import com.ktg.mes.gys.service.ISupplierCategoryService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商类别Service业务层处理
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
@Service
|
||||
public class SupplierCategoryServiceImpl implements ISupplierCategoryService
|
||||
{
|
||||
@Autowired
|
||||
private SupplierCategoryMapper supplierCategoryMapper;
|
||||
|
||||
/**
|
||||
* 查询供应商类别
|
||||
*
|
||||
* @param categoryId 供应商类别主键
|
||||
* @return 供应商类别
|
||||
*/
|
||||
@Override
|
||||
public SupplierCategory selectSupplierCategoryByCategoryId(Long categoryId)
|
||||
{
|
||||
return supplierCategoryMapper.selectSupplierCategoryByCategoryId(categoryId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询供应商类别列表
|
||||
*
|
||||
* @param supplierCategory 供应商类别
|
||||
* @return 供应商类别
|
||||
*/
|
||||
@Override
|
||||
public List<SupplierCategory> selectSupplierCategoryList(SupplierCategory supplierCategory)
|
||||
{
|
||||
return supplierCategoryMapper.selectSupplierCategoryList(supplierCategory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增供应商类别
|
||||
*
|
||||
* @param supplierCategory 供应商类别
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSupplierCategory(SupplierCategory supplierCategory)
|
||||
{
|
||||
supplierCategory.setCreateTime(DateUtils.getNowDate());
|
||||
return supplierCategoryMapper.insertSupplierCategory(supplierCategory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改供应商类别
|
||||
*
|
||||
* @param supplierCategory 供应商类别
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSupplierCategory(SupplierCategory supplierCategory)
|
||||
{
|
||||
supplierCategory.setUpdateTime(DateUtils.getNowDate());
|
||||
return supplierCategoryMapper.updateSupplierCategory(supplierCategory);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除供应商类别
|
||||
*
|
||||
* @param categoryIds 需要删除的供应商类别主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplierCategoryByCategoryIds(Long[] categoryIds)
|
||||
{
|
||||
return supplierCategoryMapper.deleteSupplierCategoryByCategoryIds(categoryIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除供应商类别信息
|
||||
*
|
||||
* @param categoryId 供应商类别主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplierCategoryByCategoryId(Long categoryId)
|
||||
{
|
||||
return supplierCategoryMapper.deleteSupplierCategoryByCategoryId(categoryId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.ktg.mes.gys.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ktg.common.utils.DateUtils;
|
||||
import com.ktg.mes.gys.domain.SupplierCooperationRecord;
|
||||
import com.ktg.mes.gys.mapper.SupplierCooperationRecordMapper;
|
||||
import com.ktg.mes.gys.service.ISupplierCooperationRecordService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商合作记录Service业务层处理
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
@Service
|
||||
public class SupplierCooperationRecordServiceImpl implements ISupplierCooperationRecordService
|
||||
{
|
||||
@Autowired
|
||||
private SupplierCooperationRecordMapper supplierCooperationRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询供应商合作记录
|
||||
*
|
||||
* @param recordId 供应商合作记录主键
|
||||
* @return 供应商合作记录
|
||||
*/
|
||||
@Override
|
||||
public SupplierCooperationRecord selectSupplierCooperationRecordByRecordId(Long recordId)
|
||||
{
|
||||
return supplierCooperationRecordMapper.selectSupplierCooperationRecordByRecordId(recordId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询供应商合作记录列表
|
||||
*
|
||||
* @param supplierCooperationRecord 供应商合作记录
|
||||
* @return 供应商合作记录
|
||||
*/
|
||||
@Override
|
||||
public List<SupplierCooperationRecord> selectSupplierCooperationRecordList(SupplierCooperationRecord supplierCooperationRecord)
|
||||
{
|
||||
return supplierCooperationRecordMapper.selectSupplierCooperationRecordList(supplierCooperationRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增供应商合作记录
|
||||
*
|
||||
* @param supplierCooperationRecord 供应商合作记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSupplierCooperationRecord(SupplierCooperationRecord supplierCooperationRecord)
|
||||
{
|
||||
supplierCooperationRecord.setCreateTime(DateUtils.getNowDate());
|
||||
return supplierCooperationRecordMapper.insertSupplierCooperationRecord(supplierCooperationRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改供应商合作记录
|
||||
*
|
||||
* @param supplierCooperationRecord 供应商合作记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSupplierCooperationRecord(SupplierCooperationRecord supplierCooperationRecord)
|
||||
{
|
||||
supplierCooperationRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
return supplierCooperationRecordMapper.updateSupplierCooperationRecord(supplierCooperationRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除供应商合作记录
|
||||
*
|
||||
* @param recordIds 需要删除的供应商合作记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplierCooperationRecordByRecordIds(Long[] recordIds)
|
||||
{
|
||||
return supplierCooperationRecordMapper.deleteSupplierCooperationRecordByRecordIds(recordIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除供应商合作记录信息
|
||||
*
|
||||
* @param recordId 供应商合作记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplierCooperationRecordByRecordId(Long recordId)
|
||||
{
|
||||
return supplierCooperationRecordMapper.deleteSupplierCooperationRecordByRecordId(recordId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.ktg.mes.gys.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ktg.common.utils.DateUtils;
|
||||
import com.ktg.mes.gys.domain.SupplierQualification;
|
||||
import com.ktg.mes.gys.mapper.SupplierQualificationMapper;
|
||||
import com.ktg.mes.gys.service.ISupplierQualificationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 供应商资质Service业务层处理
|
||||
*
|
||||
* @author yinjinlu
|
||||
* @date 2025-02-21
|
||||
*/
|
||||
@Service
|
||||
public class SupplierQualificationServiceImpl implements ISupplierQualificationService
|
||||
{
|
||||
@Autowired
|
||||
private SupplierQualificationMapper supplierQualificationMapper;
|
||||
|
||||
/**
|
||||
* 查询供应商资质
|
||||
*
|
||||
* @param qualId 供应商资质主键
|
||||
* @return 供应商资质
|
||||
*/
|
||||
@Override
|
||||
public SupplierQualification selectSupplierQualificationByQualId(Long qualId)
|
||||
{
|
||||
return supplierQualificationMapper.selectSupplierQualificationByQualId(qualId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询供应商资质列表
|
||||
*
|
||||
* @param supplierQualification 供应商资质
|
||||
* @return 供应商资质
|
||||
*/
|
||||
@Override
|
||||
public List<SupplierQualification> selectSupplierQualificationList(SupplierQualification supplierQualification)
|
||||
{
|
||||
return supplierQualificationMapper.selectSupplierQualificationList(supplierQualification);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增供应商资质
|
||||
*
|
||||
* @param supplierQualification 供应商资质
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSupplierQualification(SupplierQualification supplierQualification)
|
||||
{
|
||||
supplierQualification.setCreateTime(DateUtils.getNowDate());
|
||||
return supplierQualificationMapper.insertSupplierQualification(supplierQualification);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改供应商资质
|
||||
*
|
||||
* @param supplierQualification 供应商资质
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSupplierQualification(SupplierQualification supplierQualification)
|
||||
{
|
||||
supplierQualification.setUpdateTime(DateUtils.getNowDate());
|
||||
return supplierQualificationMapper.updateSupplierQualification(supplierQualification);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除供应商资质
|
||||
*
|
||||
* @param qualIds 需要删除的供应商资质主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplierQualificationByQualIds(Long[] qualIds)
|
||||
{
|
||||
return supplierQualificationMapper.deleteSupplierQualificationByQualIds(qualIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除供应商资质信息
|
||||
*
|
||||
* @param qualId 供应商资质主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSupplierQualificationByQualId(Long qualId)
|
||||
{
|
||||
return supplierQualificationMapper.deleteSupplierQualificationByQualId(qualId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
<?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.ktg.mes.gys.mapper.SupplierAssessmentMapper">
|
||||
|
||||
<resultMap type="com.ktg.mes.gys.domain.SupplierAssessment" id="SupplierAssessmentResult">
|
||||
<result property="assessmentId" column="assessment_id" />
|
||||
<result property="supplierName" column="supplier_name" />
|
||||
<result property="supplierId" column="supplier_id" />
|
||||
<result property="assessmentTime" column="assessment_time" />
|
||||
<result property="score" column="score" />
|
||||
<result property="remarks" column="remarks" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSupplierAssessmentVo">
|
||||
select assessment_id, supplier_name, supplier_id, assessment_time, score, remarks, create_time, update_time, is_deleted from supplier_assessment
|
||||
</sql>
|
||||
|
||||
<select id="selectSupplierAssessmentList" parameterType="com.ktg.mes.gys.domain.SupplierAssessment" resultMap="SupplierAssessmentResult">
|
||||
<include refid="selectSupplierAssessmentVo"/>
|
||||
<where>
|
||||
<if test="supplierName != null and supplierName != ''"> and supplier_name like concat('%', #{supplierName}, '%')</if>
|
||||
<if test="supplierId != null "> and supplier_id = #{supplierId}</if>
|
||||
<if test="assessmentTime != null "> and assessment_time = #{assessmentTime}</if>
|
||||
<if test="score != null and score != ''"> and score = #{score}</if>
|
||||
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
||||
<if test="isDeleted != null and isDeleted != ''"> and is_deleted = #{isDeleted}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSupplierAssessmentByAssessmentId" parameterType="Long" resultMap="SupplierAssessmentResult">
|
||||
<include refid="selectSupplierAssessmentVo"/>
|
||||
where assessment_id = #{assessmentId}
|
||||
</select>
|
||||
|
||||
<insert id="insertSupplierAssessment" parameterType="com.ktg.mes.gys.domain.SupplierAssessment">
|
||||
insert into supplier_assessment
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="assessmentId != null">assessment_id,</if>
|
||||
<if test="supplierName != null">supplier_name,</if>
|
||||
<if test="supplierId != null">supplier_id,</if>
|
||||
<if test="assessmentTime != null">assessment_time,</if>
|
||||
<if test="score != null">score,</if>
|
||||
<if test="remarks != null">remarks,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="assessmentId != null">#{assessmentId},</if>
|
||||
<if test="supplierName != null">#{supplierName},</if>
|
||||
<if test="supplierId != null">#{supplierId},</if>
|
||||
<if test="assessmentTime != null">#{assessmentTime},</if>
|
||||
<if test="score != null">#{score},</if>
|
||||
<if test="remarks != null">#{remarks},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSupplierAssessment" parameterType="com.ktg.mes.gys.domain.SupplierAssessment">
|
||||
update supplier_assessment
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="supplierName != null">supplier_name = #{supplierName},</if>
|
||||
<if test="supplierId != null">supplier_id = #{supplierId},</if>
|
||||
<if test="assessmentTime != null">assessment_time = #{assessmentTime},</if>
|
||||
<if test="score != null">score = #{score},</if>
|
||||
<if test="remarks != null">remarks = #{remarks},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
</trim>
|
||||
where assessment_id = #{assessmentId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSupplierAssessmentByAssessmentId" parameterType="Long">
|
||||
delete from supplier_assessment where assessment_id = #{assessmentId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSupplierAssessmentByAssessmentIds" parameterType="String">
|
||||
delete from supplier_assessment where assessment_id in
|
||||
<foreach item="assessmentId" collection="array" open="(" separator="," close=")">
|
||||
#{assessmentId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,76 @@
|
||||
<?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.ktg.mes.gys.mapper.SupplierCategoryMapper">
|
||||
|
||||
<resultMap type="com.ktg.mes.gys.domain.SupplierCategory" id="SupplierCategoryResult">
|
||||
<result property="categoryId" column="category_id" />
|
||||
<result property="categoryName" column="category_name" />
|
||||
<result property="description" column="description" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSupplierCategoryVo">
|
||||
select category_id, category_name, description, create_time, update_time, is_deleted from supplier_category
|
||||
</sql>
|
||||
|
||||
<select id="selectSupplierCategoryList" parameterType="com.ktg.mes.gys.domain.SupplierCategory" resultMap="SupplierCategoryResult">
|
||||
<include refid="selectSupplierCategoryVo"/>
|
||||
<where>
|
||||
<if test="categoryName != null and categoryName != ''"> and category_name like concat('%', #{categoryName}, '%')</if>
|
||||
<if test="description != null and description != ''"> and description = #{description}</if>
|
||||
<if test="isDeleted != null and isDeleted != ''"> and is_deleted = #{isDeleted}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSupplierCategoryByCategoryId" parameterType="Long" resultMap="SupplierCategoryResult">
|
||||
<include refid="selectSupplierCategoryVo"/>
|
||||
where category_id = #{categoryId}
|
||||
</select>
|
||||
|
||||
<insert id="insertSupplierCategory" parameterType="com.ktg.mes.gys.domain.SupplierCategory">
|
||||
insert into supplier_category
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="categoryId != null">category_id,</if>
|
||||
<if test="categoryName != null and categoryName != ''">category_name,</if>
|
||||
<if test="description != null">description,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="categoryId != null">#{categoryId},</if>
|
||||
<if test="categoryName != null and categoryName != ''">#{categoryName},</if>
|
||||
<if test="description != null">#{description},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSupplierCategory" parameterType="com.ktg.mes.gys.domain.SupplierCategory">
|
||||
update supplier_category
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="categoryName != null and categoryName != ''">category_name = #{categoryName},</if>
|
||||
<if test="description != null">description = #{description},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
</trim>
|
||||
where category_id = #{categoryId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSupplierCategoryByCategoryId" parameterType="Long">
|
||||
delete from supplier_category where category_id = #{categoryId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSupplierCategoryByCategoryIds" parameterType="String">
|
||||
delete from supplier_category where category_id in
|
||||
<foreach item="categoryId" collection="array" open="(" separator="," close=")">
|
||||
#{categoryId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,94 @@
|
||||
<?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.ktg.mes.gys.mapper.SupplierCooperationRecordMapper">
|
||||
|
||||
<resultMap type="com.ktg.mes.gys.domain.SupplierCooperationRecord" id="SupplierCooperationRecordResult">
|
||||
<result property="recordId" column="record_id" />
|
||||
<result property="supplierName" column="supplier_name" />
|
||||
<result property="supplierId" column="supplier_id" />
|
||||
<result property="cooperationTime" column="cooperation_time" />
|
||||
<result property="content" column="content" />
|
||||
<result property="amount" column="amount" />
|
||||
<result property="remarks" column="remarks" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSupplierCooperationRecordVo">
|
||||
select record_id, supplier_name, supplier_id, cooperation_time, content, amount, remarks, create_time, update_time, is_deleted from supplier_cooperation_record
|
||||
</sql>
|
||||
|
||||
<select id="selectSupplierCooperationRecordList" parameterType="com.ktg.mes.gys.domain.SupplierCooperationRecord" resultMap="SupplierCooperationRecordResult">
|
||||
<include refid="selectSupplierCooperationRecordVo"/>
|
||||
<where>
|
||||
<if test="supplierName != null and supplierName != ''"> and supplier_name like concat('%', #{supplierName}, '%')</if>
|
||||
<if test="supplierId != null "> and supplier_id = #{supplierId}</if>
|
||||
<if test="cooperationTime != null "> and cooperation_time = #{cooperationTime}</if>
|
||||
<if test="content != null and content != ''"> and content = #{content}</if>
|
||||
<if test="amount != null "> and amount = #{amount}</if>
|
||||
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
||||
<if test="isDeleted != null and isDeleted != ''"> and is_deleted = #{isDeleted}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSupplierCooperationRecordByRecordId" parameterType="Long" resultMap="SupplierCooperationRecordResult">
|
||||
<include refid="selectSupplierCooperationRecordVo"/>
|
||||
where record_id = #{recordId}
|
||||
</select>
|
||||
|
||||
<insert id="insertSupplierCooperationRecord" parameterType="com.ktg.mes.gys.domain.SupplierCooperationRecord" useGeneratedKeys="true" keyProperty="recordId">
|
||||
insert into supplier_cooperation_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="supplierName != null">supplier_name,</if>
|
||||
<if test="supplierId != null">supplier_id,</if>
|
||||
<if test="cooperationTime != null">cooperation_time,</if>
|
||||
<if test="content != null">content,</if>
|
||||
<if test="amount != null">amount,</if>
|
||||
<if test="remarks != null">remarks,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="supplierName != null">#{supplierName},</if>
|
||||
<if test="supplierId != null">#{supplierId},</if>
|
||||
<if test="cooperationTime != null">#{cooperationTime},</if>
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="amount != null">#{amount},</if>
|
||||
<if test="remarks != null">#{remarks},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSupplierCooperationRecord" parameterType="com.ktg.mes.gys.domain.SupplierCooperationRecord">
|
||||
update supplier_cooperation_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="supplierName != null">supplier_name = #{supplierName},</if>
|
||||
<if test="supplierId != null">supplier_id = #{supplierId},</if>
|
||||
<if test="cooperationTime != null">cooperation_time = #{cooperationTime},</if>
|
||||
<if test="content != null">content = #{content},</if>
|
||||
<if test="amount != null">amount = #{amount},</if>
|
||||
<if test="remarks != null">remarks = #{remarks},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
</trim>
|
||||
where record_id = #{recordId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSupplierCooperationRecordByRecordId" parameterType="Long">
|
||||
delete from supplier_cooperation_record where record_id = #{recordId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSupplierCooperationRecordByRecordIds" parameterType="String">
|
||||
delete from supplier_cooperation_record where record_id in
|
||||
<foreach item="recordId" collection="array" open="(" separator="," close=")">
|
||||
#{recordId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?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.ktg.mes.gys.mapper.SupplierQualificationMapper">
|
||||
|
||||
<resultMap type="com.ktg.mes.gys.domain.SupplierQualification" id="SupplierQualificationResult">
|
||||
<result property="qualId" column="qual_id" />
|
||||
<result property="supplierId" column="supplier_id" />
|
||||
<result property="qualName" column="qual_name" />
|
||||
<result property="qualType" column="qual_type" />
|
||||
<result property="validDate" column="valid_date" />
|
||||
<result property="filePath" column="file_path" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="isDeleted" column="is_deleted" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSupplierQualificationVo">
|
||||
select qual_id, supplier_id, qual_name, qual_type, valid_date, file_path, create_time, update_time, is_deleted from supplier_qualification
|
||||
</sql>
|
||||
|
||||
<select id="selectSupplierQualificationList" parameterType="com.ktg.mes.gys.domain.SupplierQualification" resultMap="SupplierQualificationResult">
|
||||
<include refid="selectSupplierQualificationVo"/>
|
||||
<where>
|
||||
<if test="supplierId != null "> and supplier_id = #{supplierId}</if>
|
||||
<if test="qualName != null and qualName != ''"> and qual_name like concat('%', #{qualName}, '%')</if>
|
||||
<if test="qualType != null and qualType != ''"> and qual_type = #{qualType}</if>
|
||||
<if test="validDate != null "> and valid_date = #{validDate}</if>
|
||||
<if test="filePath != null and filePath != ''"> and file_path = #{filePath}</if>
|
||||
<if test="isDeleted != null and isDeleted != ''"> and is_deleted = #{isDeleted}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSupplierQualificationByQualId" parameterType="Long" resultMap="SupplierQualificationResult">
|
||||
<include refid="selectSupplierQualificationVo"/>
|
||||
where qual_id = #{qualId}
|
||||
</select>
|
||||
|
||||
<insert id="insertSupplierQualification" parameterType="com.ktg.mes.gys.domain.SupplierQualification" useGeneratedKeys="true" keyProperty="qualId">
|
||||
insert into supplier_qualification
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="supplierId != null">supplier_id,</if>
|
||||
<if test="qualName != null">qual_name,</if>
|
||||
<if test="qualType != null">qual_type,</if>
|
||||
<if test="validDate != null">valid_date,</if>
|
||||
<if test="filePath != null">file_path,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="isDeleted != null">is_deleted,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="supplierId != null">#{supplierId},</if>
|
||||
<if test="qualName != null">#{qualName},</if>
|
||||
<if test="qualType != null">#{qualType},</if>
|
||||
<if test="validDate != null">#{validDate},</if>
|
||||
<if test="filePath != null">#{filePath},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="isDeleted != null">#{isDeleted},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSupplierQualification" parameterType="com.ktg.mes.gys.domain.SupplierQualification">
|
||||
update supplier_qualification
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="supplierId != null">supplier_id = #{supplierId},</if>
|
||||
<if test="qualName != null">qual_name = #{qualName},</if>
|
||||
<if test="qualType != null">qual_type = #{qualType},</if>
|
||||
<if test="validDate != null">valid_date = #{validDate},</if>
|
||||
<if test="filePath != null">file_path = #{filePath},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="isDeleted != null">is_deleted = #{isDeleted},</if>
|
||||
</trim>
|
||||
where qual_id = #{qualId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSupplierQualificationByQualId" parameterType="Long">
|
||||
delete from supplier_qualification where qual_id = #{qualId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSupplierQualificationByQualIds" parameterType="String">
|
||||
delete from supplier_qualification where qual_id in
|
||||
<foreach item="qualId" collection="array" open="(" separator="," close=")">
|
||||
#{qualId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user