Browse Source

[feat] 售后管理

出货设备实体类新增 出库单号字段
出货设备mapper.xml层所有方法加上出库单号字段
dev
liuxiaoxu 3 weeks ago
parent
commit
e4e2d56783
  1. 14
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/domain/AfterSalesShippingDevice.java
  2. 8
      ruoyi-admin/src/main/resources/mapper/aftersales/AfterSalesShippingDeviceMapper.xml

14
ruoyi-admin/src/main/java/com/ruoyi/aftersales/domain/AfterSalesShippingDevice.java

@ -33,6 +33,11 @@ public class AfterSalesShippingDevice extends BaseEntity
@Excel(name = "关联销售单号") @Excel(name = "关联销售单号")
private String salesOrderCode; private String salesOrderCode;
/** 出库单号 */
@Excel(name = "出库单号")
private String outOrderCode;
/** 料号 */ /** 料号 */
@Excel(name = "料号") @Excel(name = "料号")
private String materialNo; private String materialNo;
@ -518,6 +523,14 @@ public class AfterSalesShippingDevice extends BaseEntity
this.qualityStatus = qualityStatus; this.qualityStatus = qualityStatus;
} }
public String getOutOrderCode() {
return outOrderCode;
}
public void setOutOrderCode(String outOrderCode) {
this.outOrderCode = outOrderCode;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@ -560,6 +573,7 @@ public class AfterSalesShippingDevice extends BaseEntity
.append("updateBy", getUpdateBy()) .append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime()) .append("updateTime", getUpdateTime())
.append("addShippingDeviceFlag",getAddShippingDeviceFlag()) .append("addShippingDeviceFlag",getAddShippingDeviceFlag())
.append("outOrderCode",getOutOrderCode())
.toString(); .toString();
} }
} }

8
ruoyi-admin/src/main/resources/mapper/aftersales/AfterSalesShippingDeviceMapper.xml

@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="shippingDeviceId" column="shipping_device_id" /> <result property="shippingDeviceId" column="shipping_device_id" />
<result property="makeNo" column="make_no" /> <result property="makeNo" column="make_no" />
<result property="salesOrderCode" column="sales_order_code" /> <result property="salesOrderCode" column="sales_order_code" />
<result property="outOrderCode" column="out_order_code" />
<result property="materialNo" column="material_no" /> <result property="materialNo" column="material_no" />
<result property="materialPhotourl" column="material_photoUrl" /> <result property="materialPhotourl" column="material_photoUrl" />
<result property="materialName" column="material_name" /> <result property="materialName" column="material_name" />
@ -52,7 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectAfterSalesShippingDeviceVo"> <sql id="selectAfterSalesShippingDeviceVo">
select shipping_device_code, shipping_device_id, make_no,sales_order_code, material_no, material_photoUrl, material_name, material_type, material_class, material_model_code, material_unit, material_brand, material_describe, select shipping_device_code, shipping_device_id, make_no,sales_order_code, out_order_code, material_no, material_photoUrl, material_name, material_type, material_class, material_model_code, material_unit, material_brand, material_describe,
device_model_code, device_running_number, make_photoUrl, sn_code, aftersales_photoUrl, factory_date, guarantee_period, guarantee_period_flag, lock_date, lock_date_flag, wastage_expire_date, wastage_expire_flag, device_model_code, device_running_number, make_photoUrl, sn_code, aftersales_photoUrl, factory_date, guarantee_period, guarantee_period_flag, lock_date, lock_date_flag, wastage_expire_date, wastage_expire_flag,
component_guarantee_date, component_guarantee_flag, engineer_name, salesman_name, make_name,customer_id, customer_name, maintain_order_code, maintain_time, create_by, create_time, update_by, update_time, component_guarantee_date, component_guarantee_flag, engineer_name, salesman_name, make_name,customer_id, customer_name, maintain_order_code, maintain_time, create_by, create_time, update_by, update_time,
add_shipping_device_flag, start_make_time, end_make_time, add_process_issue_record_flag,quality_status from aftersales_shipping_device add_shipping_device_flag, start_make_time, end_make_time, add_process_issue_record_flag,quality_status from aftersales_shipping_device
@ -139,12 +140,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<foreach item="salesOrderCode" collection="array" open="(" separator="," close=")"> <foreach item="salesOrderCode" collection="array" open="(" separator="," close=")">
#{salesOrderCode} #{salesOrderCode}
</foreach> </foreach>
and add_shipping_device_flag = '1'
</select> </select>
<select id="selectAllShippingDevices" resultMap="AfterSalesShippingDeviceResult"> <select id="selectAllShippingDevices" resultMap="AfterSalesShippingDeviceResult">
<include refid="selectAfterSalesShippingDeviceVo"/> <include refid="selectAfterSalesShippingDeviceVo"/>
where add_shipping_device_flag = '1'
</select> </select>
<select id="selectBatchShippingDeviceById" parameterType="String" resultMap="AfterSalesShippingDeviceResult"> <select id="selectBatchShippingDeviceById" parameterType="String" resultMap="AfterSalesShippingDeviceResult">
@ -162,6 +161,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="shippingDeviceId != null and shippingDeviceId != ''">shipping_device_id,</if> <if test="shippingDeviceId != null and shippingDeviceId != ''">shipping_device_id,</if>
<if test="salesOrderCode != null">sales_order_code,</if> <if test="salesOrderCode != null">sales_order_code,</if>
<if test="makeNo != null">make_no,</if> <if test="makeNo != null">make_no,</if>
<if test="outOrderCode != null">out_order_code,</if>
<if test="materialNo != null">material_no,</if> <if test="materialNo != null">material_no,</if>
<if test="materialPhotourl != null">material_photoUrl,</if> <if test="materialPhotourl != null">material_photoUrl,</if>
<if test="materialName != null">material_name,</if> <if test="materialName != null">material_name,</if>
@ -205,6 +205,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="shippingDeviceId != null and shippingDeviceId != ''">#{shippingDeviceId},</if> <if test="shippingDeviceId != null and shippingDeviceId != ''">#{shippingDeviceId},</if>
<if test="salesOrderCode != null">#{salesOrderCode},</if> <if test="salesOrderCode != null">#{salesOrderCode},</if>
<if test="makeNo != null">#{makeNo},</if> <if test="makeNo != null">#{makeNo},</if>
<if test="outOrderCode != null">#{outOrderCode},</if>
<if test="materialNo != null">#{materialNo},</if> <if test="materialNo != null">#{materialNo},</if>
<if test="materialPhotourl != null">#{materialPhotourl},</if> <if test="materialPhotourl != null">#{materialPhotourl},</if>
<if test="materialName != null">#{materialName},</if> <if test="materialName != null">#{materialName},</if>
@ -252,6 +253,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="shippingDeviceId != null and shippingDeviceId != ''">shipping_device_id = #{shippingDeviceId},</if> <if test="shippingDeviceId != null and shippingDeviceId != ''">shipping_device_id = #{shippingDeviceId},</if>
<if test="salesOrderCode != null">sales_order_code = #{salesOrderCode},</if> <if test="salesOrderCode != null">sales_order_code = #{salesOrderCode},</if>
<if test="makeNo != null">make_no = #{makeNo},</if> <if test="makeNo != null">make_no = #{makeNo},</if>
<if test="outOrderCode != null">out_order_code = #{outOrderCode},</if>
<if test="materialNo != null">material_no = #{materialNo},</if> <if test="materialNo != null">material_no = #{materialNo},</if>
<if test="materialPhotourl != null">material_photoUrl = #{materialPhotourl},</if> <if test="materialPhotourl != null">material_photoUrl = #{materialPhotourl},</if>
<if test="materialName != null">material_name = #{materialName},</if> <if test="materialName != null">material_name = #{materialName},</if>

Loading…
Cancel
Save