Browse Source
退换货 新增退换货详情Mapper 新增退换货详情Mapper.xml 新增退换货详情Service 新增退换货详情ServiceImpl 新增退换货选择物料materialSelect.html 退换货新增选择物料信息接口 物料管理新增查询所有物料信息接口dev
liuxiaoxu
6 months ago
17 changed files with 1148 additions and 123 deletions
@ -0,0 +1,325 @@ |
|||
package com.ruoyi.quality.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.ruoyi.common.annotation.Excel; |
|||
import com.ruoyi.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 品质管理退换货单详情对象 quality_refunds_exchanges_detail |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-05-24 |
|||
*/ |
|||
public class QualityRefundsExchangesDetail extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 退换货详情Id */ |
|||
private Long refundsExchangesDetailId; |
|||
|
|||
/** 退换货单号 */ |
|||
@Excel(name = "退换货单号") |
|||
private String refundsExchangesCode; |
|||
|
|||
/** 退换货状态 */ |
|||
@Excel(name = "退换货状态") |
|||
private String refundsExchangesStatus; |
|||
|
|||
/** 仓库状态 */ |
|||
@Excel(name = "仓库状态") |
|||
private String qualityWarehouseStatus; |
|||
|
|||
/** 采购状态 */ |
|||
@Excel(name = "采购状态") |
|||
private String qualityPurchaseStatus; |
|||
|
|||
/** 关联订单号 */ |
|||
@Excel(name = "关联订单号") |
|||
private String relatedOrderCode; |
|||
|
|||
/** 入库单号 */ |
|||
@Excel(name = "入库单号") |
|||
private String inStorageCode; |
|||
|
|||
/** 退货节点 */ |
|||
@Excel(name = "退货节点") |
|||
private String qualityReturnNode; |
|||
|
|||
/** 物料数合计 */ |
|||
@Excel(name = "物料数合计") |
|||
private Long materialTotal; |
|||
|
|||
/** 数量合计 */ |
|||
@Excel(name = "数量合计") |
|||
private Long numTotal; |
|||
|
|||
/** 料号 */ |
|||
@Excel(name = "料号") |
|||
private String materialNo; |
|||
|
|||
/** 物料名称 */ |
|||
@Excel(name = "物料名称") |
|||
private String materialName; |
|||
|
|||
/** 物料类型 */ |
|||
@Excel(name = "物料类型") |
|||
private String materialType; |
|||
|
|||
/** 物料图片地址 */ |
|||
@Excel(name = "物料图片地址") |
|||
private String materialPhotourl; |
|||
|
|||
/** 物料品牌 */ |
|||
@Excel(name = "物料品牌") |
|||
private String materialBrand; |
|||
|
|||
/** 物料单位 */ |
|||
@Excel(name = "物料单位") |
|||
private String materialUnit; |
|||
|
|||
/** 物料描述 */ |
|||
@Excel(name = "物料描述") |
|||
private String materialDescribe; |
|||
|
|||
/** 物料加工方式 */ |
|||
@Excel(name = "物料加工方式") |
|||
private String materialProcessMethod; |
|||
|
|||
/** 退换货数 */ |
|||
@Excel(name = "退换货数") |
|||
private Long refundsExchangesNum; |
|||
|
|||
/** 交付质检时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "交付质检时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date deliveryInspectionTime; |
|||
|
|||
/** 品质备注 */ |
|||
@Excel(name = "品质备注") |
|||
private String qualityRemark; |
|||
|
|||
public void setRefundsExchangesDetailId(Long refundsExchangesDetailId) |
|||
{ |
|||
this.refundsExchangesDetailId = refundsExchangesDetailId; |
|||
} |
|||
|
|||
public Long getRefundsExchangesDetailId() |
|||
{ |
|||
return refundsExchangesDetailId; |
|||
} |
|||
public void setRefundsExchangesCode(String refundsExchangesCode) |
|||
{ |
|||
this.refundsExchangesCode = refundsExchangesCode; |
|||
} |
|||
|
|||
public String getRefundsExchangesCode() |
|||
{ |
|||
return refundsExchangesCode; |
|||
} |
|||
public void setRefundsExchangesStatus(String refundsExchangesStatus) |
|||
{ |
|||
this.refundsExchangesStatus = refundsExchangesStatus; |
|||
} |
|||
|
|||
public String getRefundsExchangesStatus() |
|||
{ |
|||
return refundsExchangesStatus; |
|||
} |
|||
public void setQualityWarehouseStatus(String qualityWarehouseStatus) |
|||
{ |
|||
this.qualityWarehouseStatus = qualityWarehouseStatus; |
|||
} |
|||
|
|||
public String getQualityWarehouseStatus() |
|||
{ |
|||
return qualityWarehouseStatus; |
|||
} |
|||
public void setQualityPurchaseStatus(String qualityPurchaseStatus) |
|||
{ |
|||
this.qualityPurchaseStatus = qualityPurchaseStatus; |
|||
} |
|||
|
|||
public String getQualityPurchaseStatus() |
|||
{ |
|||
return qualityPurchaseStatus; |
|||
} |
|||
public void setRelatedOrderCode(String relatedOrderCode) |
|||
{ |
|||
this.relatedOrderCode = relatedOrderCode; |
|||
} |
|||
|
|||
public String getRelatedOrderCode() |
|||
{ |
|||
return relatedOrderCode; |
|||
} |
|||
public void setInStorageCode(String inStorageCode) |
|||
{ |
|||
this.inStorageCode = inStorageCode; |
|||
} |
|||
|
|||
public String getInStorageCode() |
|||
{ |
|||
return inStorageCode; |
|||
} |
|||
public void setQualityReturnNode(String qualityReturnNode) |
|||
{ |
|||
this.qualityReturnNode = qualityReturnNode; |
|||
} |
|||
|
|||
public String getQualityReturnNode() |
|||
{ |
|||
return qualityReturnNode; |
|||
} |
|||
public void setMaterialTotal(Long materialTotal) |
|||
{ |
|||
this.materialTotal = materialTotal; |
|||
} |
|||
|
|||
public Long getMaterialTotal() |
|||
{ |
|||
return materialTotal; |
|||
} |
|||
public void setNumTotal(Long numTotal) |
|||
{ |
|||
this.numTotal = numTotal; |
|||
} |
|||
|
|||
public Long getNumTotal() |
|||
{ |
|||
return numTotal; |
|||
} |
|||
public void setMaterialNo(String materialNo) |
|||
{ |
|||
this.materialNo = materialNo; |
|||
} |
|||
|
|||
public String getMaterialNo() |
|||
{ |
|||
return materialNo; |
|||
} |
|||
public void setMaterialName(String materialName) |
|||
{ |
|||
this.materialName = materialName; |
|||
} |
|||
|
|||
public String getMaterialName() |
|||
{ |
|||
return materialName; |
|||
} |
|||
public void setMaterialType(String materialType) |
|||
{ |
|||
this.materialType = materialType; |
|||
} |
|||
|
|||
public String getMaterialType() |
|||
{ |
|||
return materialType; |
|||
} |
|||
public void setMaterialPhotourl(String materialPhotourl) |
|||
{ |
|||
this.materialPhotourl = materialPhotourl; |
|||
} |
|||
|
|||
public String getMaterialPhotourl() |
|||
{ |
|||
return materialPhotourl; |
|||
} |
|||
public void setMaterialBrand(String materialBrand) |
|||
{ |
|||
this.materialBrand = materialBrand; |
|||
} |
|||
|
|||
public String getMaterialBrand() |
|||
{ |
|||
return materialBrand; |
|||
} |
|||
public void setMaterialUnit(String materialUnit) |
|||
{ |
|||
this.materialUnit = materialUnit; |
|||
} |
|||
|
|||
public String getMaterialUnit() |
|||
{ |
|||
return materialUnit; |
|||
} |
|||
public void setMaterialDescribe(String materialDescribe) |
|||
{ |
|||
this.materialDescribe = materialDescribe; |
|||
} |
|||
|
|||
public String getMaterialDescribe() |
|||
{ |
|||
return materialDescribe; |
|||
} |
|||
public void setMaterialProcessMethod(String materialProcessMethod) |
|||
{ |
|||
this.materialProcessMethod = materialProcessMethod; |
|||
} |
|||
|
|||
public String getMaterialProcessMethod() |
|||
{ |
|||
return materialProcessMethod; |
|||
} |
|||
public void setRefundsExchangesNum(Long refundsExchangesNum) |
|||
{ |
|||
this.refundsExchangesNum = refundsExchangesNum; |
|||
} |
|||
|
|||
public Long getRefundsExchangesNum() |
|||
{ |
|||
return refundsExchangesNum; |
|||
} |
|||
public void setDeliveryInspectionTime(Date deliveryInspectionTime) |
|||
{ |
|||
this.deliveryInspectionTime = deliveryInspectionTime; |
|||
} |
|||
|
|||
public Date getDeliveryInspectionTime() |
|||
{ |
|||
return deliveryInspectionTime; |
|||
} |
|||
public void setQualityRemark(String qualityRemark) |
|||
{ |
|||
this.qualityRemark = qualityRemark; |
|||
} |
|||
|
|||
public String getQualityRemark() |
|||
{ |
|||
return qualityRemark; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("refundsExchangesDetailId", getRefundsExchangesDetailId()) |
|||
.append("refundsExchangesCode", getRefundsExchangesCode()) |
|||
.append("refundsExchangesStatus", getRefundsExchangesStatus()) |
|||
.append("qualityWarehouseStatus", getQualityWarehouseStatus()) |
|||
.append("qualityPurchaseStatus", getQualityPurchaseStatus()) |
|||
.append("relatedOrderCode", getRelatedOrderCode()) |
|||
.append("inStorageCode", getInStorageCode()) |
|||
.append("qualityReturnNode", getQualityReturnNode()) |
|||
.append("materialTotal", getMaterialTotal()) |
|||
.append("numTotal", getNumTotal()) |
|||
.append("materialNo", getMaterialNo()) |
|||
.append("materialName", getMaterialName()) |
|||
.append("materialType", getMaterialType()) |
|||
.append("materialPhotourl", getMaterialPhotourl()) |
|||
.append("materialBrand", getMaterialBrand()) |
|||
.append("materialUnit", getMaterialUnit()) |
|||
.append("materialDescribe", getMaterialDescribe()) |
|||
.append("materialProcessMethod", getMaterialProcessMethod()) |
|||
.append("refundsExchangesNum", getRefundsExchangesNum()) |
|||
.append("deliveryInspectionTime", getDeliveryInspectionTime()) |
|||
.append("qualityRemark", getQualityRemark()) |
|||
.append("remark", getRemark()) |
|||
.append("createBy", getCreateBy()) |
|||
.append("createTime", getCreateTime()) |
|||
.append("updateBy", getUpdateBy()) |
|||
.append("updateTime", getUpdateTime()) |
|||
.toString(); |
|||
} |
|||
} |
@ -0,0 +1,77 @@ |
|||
package com.ruoyi.quality.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.quality.domain.QualityRefundsExchangesDetail; |
|||
|
|||
/** |
|||
* 品质管理退换货单详情Mapper接口 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-05-24 |
|||
*/ |
|||
public interface QualityRefundsExchangesDetailMapper |
|||
{ |
|||
/** |
|||
* 查询品质管理退换货单详情 |
|||
* |
|||
* @param refundsExchangesDetailId 品质管理退换货单详情ID |
|||
* @return 品质管理退换货单详情 |
|||
*/ |
|||
public QualityRefundsExchangesDetail selectQualityRefundsExchangesDetailById(Long refundsExchangesDetailId); |
|||
|
|||
/** |
|||
* 查询品质管理退换货单详情列表 |
|||
* |
|||
* @param qualityRefundsExchangesDetail 品质管理退换货单详情 |
|||
* @return 品质管理退换货单详情集合 |
|||
*/ |
|||
public List<QualityRefundsExchangesDetail> selectQualityRefundsExchangesDetailList(QualityRefundsExchangesDetail qualityRefundsExchangesDetail); |
|||
|
|||
/** |
|||
* 新增品质管理退换货单详情 |
|||
* |
|||
* @param qualityRefundsExchangesDetail 品质管理退换货单详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertQualityRefundsExchangesDetail(QualityRefundsExchangesDetail qualityRefundsExchangesDetail); |
|||
|
|||
/** |
|||
* 修改品质管理退换货单详情 |
|||
* |
|||
* @param qualityRefundsExchangesDetail 品质管理退换货单详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateQualityRefundsExchangesDetail(QualityRefundsExchangesDetail qualityRefundsExchangesDetail); |
|||
|
|||
/** |
|||
* 删除品质管理退换货单详情 |
|||
* |
|||
* @param refundsExchangesDetailId 品质管理退换货单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteQualityRefundsExchangesDetailById(Long refundsExchangesDetailId); |
|||
|
|||
/** |
|||
* 批量删除品质管理退换货单详情 |
|||
* |
|||
* @param refundsExchangesDetailIds 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteQualityRefundsExchangesDetailByIds(String[] refundsExchangesDetailIds); |
|||
|
|||
/** |
|||
* 作废品质管理退换货单详情 |
|||
* |
|||
* @param refundsExchangesDetailId 品质管理退换货单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int cancelQualityRefundsExchangesDetailById(Long refundsExchangesDetailId); |
|||
|
|||
/** |
|||
* 恢复品质管理退换货单详情 |
|||
* |
|||
* @param refundsExchangesDetailId 品质管理退换货单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int restoreQualityRefundsExchangesDetailById(Long refundsExchangesDetailId); |
|||
} |
@ -0,0 +1,75 @@ |
|||
package com.ruoyi.quality.service; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.quality.domain.QualityRefundsExchangesDetail; |
|||
|
|||
/** |
|||
* 品质管理退换货单详情Service接口 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-05-24 |
|||
*/ |
|||
public interface IQualityRefundsExchangesDetailService |
|||
{ |
|||
/** |
|||
* 查询品质管理退换货单详情 |
|||
* |
|||
* @param refundsExchangesDetailId 品质管理退换货单详情ID |
|||
* @return 品质管理退换货单详情 |
|||
*/ |
|||
public QualityRefundsExchangesDetail selectQualityRefundsExchangesDetailById(Long refundsExchangesDetailId); |
|||
|
|||
/** |
|||
* 查询品质管理退换货单详情列表 |
|||
* |
|||
* @param qualityRefundsExchangesDetail 品质管理退换货单详情 |
|||
* @return 品质管理退换货单详情集合 |
|||
*/ |
|||
public List<QualityRefundsExchangesDetail> selectQualityRefundsExchangesDetailList(QualityRefundsExchangesDetail qualityRefundsExchangesDetail); |
|||
|
|||
/** |
|||
* 新增品质管理退换货单详情 |
|||
* |
|||
* @param qualityRefundsExchangesDetail 品质管理退换货单详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertQualityRefundsExchangesDetail(QualityRefundsExchangesDetail qualityRefundsExchangesDetail); |
|||
|
|||
/** |
|||
* 修改品质管理退换货单详情 |
|||
* |
|||
* @param qualityRefundsExchangesDetail 品质管理退换货单详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateQualityRefundsExchangesDetail(QualityRefundsExchangesDetail qualityRefundsExchangesDetail); |
|||
|
|||
/** |
|||
* 批量删除品质管理退换货单详情 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteQualityRefundsExchangesDetailByIds(String ids); |
|||
|
|||
/** |
|||
* 删除品质管理退换货单详情信息 |
|||
* |
|||
* @param refundsExchangesDetailId 品质管理退换货单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteQualityRefundsExchangesDetailById(Long refundsExchangesDetailId); |
|||
|
|||
/** |
|||
* 作废品质管理退换货单详情 |
|||
* @param refundsExchangesDetailId 品质管理退换货单详情ID |
|||
* @return |
|||
*/ |
|||
int cancelQualityRefundsExchangesDetailById(Long refundsExchangesDetailId); |
|||
|
|||
/** |
|||
* 恢复品质管理退换货单详情 |
|||
* @param refundsExchangesDetailId 品质管理退换货单详情ID |
|||
* @return |
|||
*/ |
|||
int restoreQualityRefundsExchangesDetailById(Long refundsExchangesDetailId); |
|||
} |
@ -0,0 +1,126 @@ |
|||
package com.ruoyi.quality.service.impl; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.common.utils.DateUtils; |
|||
import com.ruoyi.common.utils.ShiroUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.ruoyi.quality.mapper.QualityRefundsExchangesDetailMapper; |
|||
import com.ruoyi.quality.domain.QualityRefundsExchangesDetail; |
|||
import com.ruoyi.quality.service.IQualityRefundsExchangesDetailService; |
|||
import com.ruoyi.common.core.text.Convert; |
|||
|
|||
/** |
|||
* 品质管理退换货单详情Service业务层处理 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-05-24 |
|||
*/ |
|||
@Service |
|||
public class QualityRefundsExchangesDetailServiceImpl implements IQualityRefundsExchangesDetailService |
|||
{ |
|||
@Autowired |
|||
private QualityRefundsExchangesDetailMapper qualityRefundsExchangesDetailMapper; |
|||
|
|||
/** |
|||
* 查询品质管理退换货单详情 |
|||
* |
|||
* @param refundsExchangesDetailId 品质管理退换货单详情ID |
|||
* @return 品质管理退换货单详情 |
|||
*/ |
|||
@Override |
|||
public QualityRefundsExchangesDetail selectQualityRefundsExchangesDetailById(Long refundsExchangesDetailId) |
|||
{ |
|||
return qualityRefundsExchangesDetailMapper.selectQualityRefundsExchangesDetailById(refundsExchangesDetailId); |
|||
} |
|||
|
|||
/** |
|||
* 查询品质管理退换货单详情列表 |
|||
* |
|||
* @param qualityRefundsExchangesDetail 品质管理退换货单详情 |
|||
* @return 品质管理退换货单详情 |
|||
*/ |
|||
@Override |
|||
public List<QualityRefundsExchangesDetail> selectQualityRefundsExchangesDetailList(QualityRefundsExchangesDetail qualityRefundsExchangesDetail) |
|||
{ |
|||
return qualityRefundsExchangesDetailMapper.selectQualityRefundsExchangesDetailList(qualityRefundsExchangesDetail); |
|||
} |
|||
|
|||
/** |
|||
* 新增品质管理退换货单详情 |
|||
* |
|||
* @param qualityRefundsExchangesDetail 品质管理退换货单详情 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertQualityRefundsExchangesDetail(QualityRefundsExchangesDetail qualityRefundsExchangesDetail) |
|||
{ |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
qualityRefundsExchangesDetail.setCreateBy(loginName); |
|||
qualityRefundsExchangesDetail.setCreateTime(DateUtils.getNowDate()); |
|||
return qualityRefundsExchangesDetailMapper.insertQualityRefundsExchangesDetail(qualityRefundsExchangesDetail); |
|||
} |
|||
|
|||
/** |
|||
* 修改品质管理退换货单详情 |
|||
* |
|||
* @param qualityRefundsExchangesDetail 品质管理退换货单详情 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateQualityRefundsExchangesDetail(QualityRefundsExchangesDetail qualityRefundsExchangesDetail) |
|||
{ |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
qualityRefundsExchangesDetail.setUpdateBy(loginName); |
|||
qualityRefundsExchangesDetail.setUpdateTime(DateUtils.getNowDate()); |
|||
return qualityRefundsExchangesDetailMapper.updateQualityRefundsExchangesDetail(qualityRefundsExchangesDetail); |
|||
} |
|||
|
|||
/** |
|||
* 删除品质管理退换货单详情对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteQualityRefundsExchangesDetailByIds(String ids) |
|||
{ |
|||
return qualityRefundsExchangesDetailMapper.deleteQualityRefundsExchangesDetailByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除品质管理退换货单详情信息 |
|||
* |
|||
* @param refundsExchangesDetailId 品质管理退换货单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteQualityRefundsExchangesDetailById(Long refundsExchangesDetailId) |
|||
{ |
|||
return qualityRefundsExchangesDetailMapper.deleteQualityRefundsExchangesDetailById(refundsExchangesDetailId); |
|||
} |
|||
|
|||
/** |
|||
* 作废品质管理退换货单详情 |
|||
* |
|||
* @param refundsExchangesDetailId 品质管理退换货单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int cancelQualityRefundsExchangesDetailById(Long refundsExchangesDetailId) |
|||
{ |
|||
return qualityRefundsExchangesDetailMapper.cancelQualityRefundsExchangesDetailById(refundsExchangesDetailId); |
|||
} |
|||
|
|||
/** |
|||
* 恢复品质管理退换货单详情信息 |
|||
* |
|||
* @param refundsExchangesDetailId 品质管理退换货单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int restoreQualityRefundsExchangesDetailById(Long refundsExchangesDetailId) |
|||
{ |
|||
return qualityRefundsExchangesDetailMapper.restoreQualityRefundsExchangesDetailById(refundsExchangesDetailId); |
|||
} |
|||
} |
@ -0,0 +1,160 @@ |
|||
<?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.ruoyi.quality.mapper.QualityRefundsExchangesDetailMapper"> |
|||
|
|||
<resultMap type="QualityRefundsExchangesDetail" id="QualityRefundsExchangesDetailResult"> |
|||
<result property="refundsExchangesDetailId" column="refunds_exchanges_detail_id" /> |
|||
<result property="refundsExchangesCode" column="refunds_exchanges_code" /> |
|||
<result property="refundsExchangesStatus" column="refunds_exchanges_status" /> |
|||
<result property="qualityWarehouseStatus" column="quality_warehouse_status" /> |
|||
<result property="qualityPurchaseStatus" column="quality_purchase_status" /> |
|||
<result property="relatedOrderCode" column="related_order_code" /> |
|||
<result property="inStorageCode" column="in_storage_code" /> |
|||
<result property="qualityReturnNode" column="quality_return_node" /> |
|||
<result property="materialTotal" column="material_total" /> |
|||
<result property="numTotal" column="num_total" /> |
|||
<result property="materialNo" column="material_no" /> |
|||
<result property="materialName" column="material_name" /> |
|||
<result property="materialType" column="material_type" /> |
|||
<result property="materialPhotourl" column="material_photoUrl" /> |
|||
<result property="materialBrand" column="material_brand" /> |
|||
<result property="materialUnit" column="material_unit" /> |
|||
<result property="materialDescribe" column="material_describe" /> |
|||
<result property="materialProcessMethod" column="material_process_method" /> |
|||
<result property="refundsExchangesNum" column="refunds_exchanges_num" /> |
|||
<result property="deliveryInspectionTime" column="delivery_inspection_time" /> |
|||
<result property="qualityRemark" column="quality_remark" /> |
|||
<result property="remark" column="remark" /> |
|||
<result property="createBy" column="create_by" /> |
|||
<result property="createTime" column="create_time" /> |
|||
<result property="updateBy" column="update_by" /> |
|||
<result property="updateTime" column="update_time" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectQualityRefundsExchangesDetailVo"> |
|||
select refunds_exchanges_detail_id, refunds_exchanges_code, refunds_exchanges_status, quality_warehouse_status, quality_purchase_status, related_order_code, in_storage_code, quality_return_node, material_total, num_total, material_no, material_name, material_type, material_photoUrl, material_brand, material_unit, material_describe, material_process_method, refunds_exchanges_num, delivery_inspection_time, quality_remark, remark, create_by, create_time, update_by, update_time from quality_refunds_exchanges_detail |
|||
</sql> |
|||
|
|||
<select id="selectQualityRefundsExchangesDetailList" parameterType="QualityRefundsExchangesDetail" resultMap="QualityRefundsExchangesDetailResult"> |
|||
<include refid="selectQualityRefundsExchangesDetailVo"/> |
|||
<where> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectQualityRefundsExchangesDetailById" parameterType="Long" resultMap="QualityRefundsExchangesDetailResult"> |
|||
<include refid="selectQualityRefundsExchangesDetailVo"/> |
|||
where refunds_exchanges_detail_id = #{refundsExchangesDetailId} |
|||
</select> |
|||
|
|||
<insert id="insertQualityRefundsExchangesDetail" parameterType="QualityRefundsExchangesDetail" useGeneratedKeys="true" keyProperty="refundsExchangesDetailId"> |
|||
insert into quality_refunds_exchanges_detail |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="refundsExchangesCode != null">refunds_exchanges_code,</if> |
|||
<if test="refundsExchangesStatus != null">refunds_exchanges_status,</if> |
|||
<if test="qualityWarehouseStatus != null">quality_warehouse_status,</if> |
|||
<if test="qualityPurchaseStatus != null">quality_purchase_status,</if> |
|||
<if test="relatedOrderCode != null">related_order_code,</if> |
|||
<if test="inStorageCode != null">in_storage_code,</if> |
|||
<if test="qualityReturnNode != null">quality_return_node,</if> |
|||
<if test="materialTotal != null">material_total,</if> |
|||
<if test="numTotal != null">num_total,</if> |
|||
<if test="materialNo != null">material_no,</if> |
|||
<if test="materialName != null">material_name,</if> |
|||
<if test="materialType != null">material_type,</if> |
|||
<if test="materialPhotourl != null">material_photoUrl,</if> |
|||
<if test="materialBrand != null">material_brand,</if> |
|||
<if test="materialUnit != null">material_unit,</if> |
|||
<if test="materialDescribe != null">material_describe,</if> |
|||
<if test="materialProcessMethod != null">material_process_method,</if> |
|||
<if test="refundsExchangesNum != null">refunds_exchanges_num,</if> |
|||
<if test="deliveryInspectionTime != null">delivery_inspection_time,</if> |
|||
<if test="qualityRemark != null">quality_remark,</if> |
|||
<if test="remark != null">remark,</if> |
|||
<if test="createBy != null">create_by,</if> |
|||
<if test="createTime != null">create_time,</if> |
|||
<if test="updateBy != null">update_by,</if> |
|||
<if test="updateTime != null">update_time,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="refundsExchangesCode != null">#{refundsExchangesCode},</if> |
|||
<if test="refundsExchangesStatus != null">#{refundsExchangesStatus},</if> |
|||
<if test="qualityWarehouseStatus != null">#{qualityWarehouseStatus},</if> |
|||
<if test="qualityPurchaseStatus != null">#{qualityPurchaseStatus},</if> |
|||
<if test="relatedOrderCode != null">#{relatedOrderCode},</if> |
|||
<if test="inStorageCode != null">#{inStorageCode},</if> |
|||
<if test="qualityReturnNode != null">#{qualityReturnNode},</if> |
|||
<if test="materialTotal != null">#{materialTotal},</if> |
|||
<if test="numTotal != null">#{numTotal},</if> |
|||
<if test="materialNo != null">#{materialNo},</if> |
|||
<if test="materialName != null">#{materialName},</if> |
|||
<if test="materialType != null">#{materialType},</if> |
|||
<if test="materialPhotourl != null">#{materialPhotourl},</if> |
|||
<if test="materialBrand != null">#{materialBrand},</if> |
|||
<if test="materialUnit != null">#{materialUnit},</if> |
|||
<if test="materialDescribe != null">#{materialDescribe},</if> |
|||
<if test="materialProcessMethod != null">#{materialProcessMethod},</if> |
|||
<if test="refundsExchangesNum != null">#{refundsExchangesNum},</if> |
|||
<if test="deliveryInspectionTime != null">#{deliveryInspectionTime},</if> |
|||
<if test="qualityRemark != null">#{qualityRemark},</if> |
|||
<if test="remark != null">#{remark},</if> |
|||
<if test="createBy != null">#{createBy},</if> |
|||
<if test="createTime != null">#{createTime},</if> |
|||
<if test="updateBy != null">#{updateBy},</if> |
|||
<if test="updateTime != null">#{updateTime},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateQualityRefundsExchangesDetail" parameterType="QualityRefundsExchangesDetail"> |
|||
update quality_refunds_exchanges_detail |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="refundsExchangesCode != null">refunds_exchanges_code = #{refundsExchangesCode},</if> |
|||
<if test="refundsExchangesStatus != null">refunds_exchanges_status = #{refundsExchangesStatus},</if> |
|||
<if test="qualityWarehouseStatus != null">quality_warehouse_status = #{qualityWarehouseStatus},</if> |
|||
<if test="qualityPurchaseStatus != null">quality_purchase_status = #{qualityPurchaseStatus},</if> |
|||
<if test="relatedOrderCode != null">related_order_code = #{relatedOrderCode},</if> |
|||
<if test="inStorageCode != null">in_storage_code = #{inStorageCode},</if> |
|||
<if test="qualityReturnNode != null">quality_return_node = #{qualityReturnNode},</if> |
|||
<if test="materialTotal != null">material_total = #{materialTotal},</if> |
|||
<if test="numTotal != null">num_total = #{numTotal},</if> |
|||
<if test="materialNo != null">material_no = #{materialNo},</if> |
|||
<if test="materialName != null">material_name = #{materialName},</if> |
|||
<if test="materialType != null">material_type = #{materialType},</if> |
|||
<if test="materialPhotourl != null">material_photoUrl = #{materialPhotourl},</if> |
|||
<if test="materialBrand != null">material_brand = #{materialBrand},</if> |
|||
<if test="materialUnit != null">material_unit = #{materialUnit},</if> |
|||
<if test="materialDescribe != null">material_describe = #{materialDescribe},</if> |
|||
<if test="materialProcessMethod != null">material_process_method = #{materialProcessMethod},</if> |
|||
<if test="refundsExchangesNum != null">refunds_exchanges_num = #{refundsExchangesNum},</if> |
|||
<if test="deliveryInspectionTime != null">delivery_inspection_time = #{deliveryInspectionTime},</if> |
|||
<if test="qualityRemark != null">quality_remark = #{qualityRemark},</if> |
|||
<if test="remark != null">remark = #{remark},</if> |
|||
<if test="createBy != null">create_by = #{createBy},</if> |
|||
<if test="createTime != null">create_time = #{createTime},</if> |
|||
<if test="updateBy != null">update_by = #{updateBy},</if> |
|||
<if test="updateTime != null">update_time = #{updateTime},</if> |
|||
</trim> |
|||
where refunds_exchanges_detail_id = #{refundsExchangesDetailId} |
|||
</update> |
|||
|
|||
<delete id="deleteQualityRefundsExchangesDetailById" parameterType="Long"> |
|||
delete from quality_refunds_exchanges_detail where refunds_exchanges_detail_id = #{refundsExchangesDetailId} |
|||
</delete> |
|||
|
|||
<delete id="deleteQualityRefundsExchangesDetailByIds" parameterType="String"> |
|||
delete from quality_refunds_exchanges_detail where refunds_exchanges_detail_id in |
|||
<foreach item="refundsExchangesDetailId" collection="array" open="(" separator="," close=")"> |
|||
#{refundsExchangesDetailId} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
<update id="cancelQualityRefundsExchangesDetailById" parameterType="Long"> |
|||
update quality_refunds_exchanges_detail set del_flag = '1' where refunds_exchanges_detail_id = #{refundsExchangesDetailId} |
|||
</update> |
|||
|
|||
<update id="restoreQualityRefundsExchangesDetailById" parameterType="Long"> |
|||
update quality_refunds_exchanges_detail set del_flag = '0' where refunds_exchanges_detail_id = #{refundsExchangesDetailId} |
|||
</update> |
|||
|
|||
</mapper> |
@ -0,0 +1,70 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="zh" xmlns:th="http://www.thymeleaf.org"> |
|||
<head> |
|||
<th:block th:include="include :: header('选择物料信息列表')" /> |
|||
</head> |
|||
<body class="gray-bg"> |
|||
<div class="container-div"> |
|||
<div class="row"> |
|||
<div class="col-sm-12 select-table table-striped"> |
|||
<table id="bootstrap-materialSelect-table"></table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<th:block th:include="include :: footer" /> |
|||
<script th:inline="javascript"> |
|||
var prefix = ctx + "quality/refundsExchanges"; |
|||
// 从后端拿到传入的makeNo |
|||
var makeNo = /*[[${makeNo}]]*/ ''; |
|||
$(function() { |
|||
var options = { |
|||
id: 'bootstrap-materialSelect-table', |
|||
clickToSelect: true, // 点击选中行 |
|||
singleSelect: true, // 单选 |
|||
showSearch: false, |
|||
showRefresh: false, |
|||
showToggle: false, |
|||
showColumns: false, |
|||
pagination: false, // 设置不分页 |
|||
url: prefix + "/getAllMaterial", |
|||
modalName: "物料信息", |
|||
columns: [{ |
|||
checkbox: true |
|||
}, |
|||
{ |
|||
title: '料号', |
|||
field: 'materialNo', |
|||
}, |
|||
{ |
|||
title: '图片', |
|||
field: 'materialPhotourl', |
|||
}, |
|||
{ |
|||
title: '物料名称', |
|||
field: 'materialName', |
|||
}, |
|||
{ |
|||
title: '类型', |
|||
field: 'materialType', |
|||
}, |
|||
{ |
|||
title: '描述', |
|||
field: 'materialDescribe', |
|||
}, |
|||
{ |
|||
title: '品牌', |
|||
field: 'materialBrand', |
|||
}, |
|||
{ |
|||
title: '单位', |
|||
field: 'materialUnit', |
|||
}, |
|||
] |
|||
}; |
|||
$.table.init(options); |
|||
|
|||
}); |
|||
|
|||
</script> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue