提交 359114b2 作者: luyincheng

收货、发货、退货增加模糊查询安装单号

辅材列表模糊查询申请单号、安装单号
收货增加收货单地址
父级 ae4ea9c6
...@@ -166,5 +166,11 @@ public class Receivednote extends PageVo implements Serializable { ...@@ -166,5 +166,11 @@ public class Receivednote extends PageVo implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 文件地址
*
* @mbg.generated
*/
@ApiModelProperty(value = "文件地址")
private String fileUrl;
} }
\ No newline at end of file
...@@ -1294,6 +1294,76 @@ public class ReceivednoteCriteria { ...@@ -1294,6 +1294,76 @@ public class ReceivednoteCriteria {
addCriterion("UPDATED_TIME not between", value1, value2, "updatedTime"); addCriterion("UPDATED_TIME not between", value1, value2, "updatedTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andFileUrlIsNull() {
addCriterion("file_url is null");
return (Criteria) this;
}
public Criteria andFileUrlIsNotNull() {
addCriterion("file_url is not null");
return (Criteria) this;
}
public Criteria andFileUrlEqualTo(String value) {
addCriterion("file_url =", value, "fileUrl");
return (Criteria) this;
}
public Criteria andFileUrlNotEqualTo(String value) {
addCriterion("file_url <>", value, "fileUrl");
return (Criteria) this;
}
public Criteria andFileUrlGreaterThan(String value) {
addCriterion("file_url >", value, "fileUrl");
return (Criteria) this;
}
public Criteria andFileUrlGreaterThanOrEqualTo(String value) {
addCriterion("file_url >=", value, "fileUrl");
return (Criteria) this;
}
public Criteria andFileUrlLessThan(String value) {
addCriterion("file_url <", value, "fileUrl");
return (Criteria) this;
}
public Criteria andFileUrlLessThanOrEqualTo(String value) {
addCriterion("file_url <=", value, "fileUrl");
return (Criteria) this;
}
public Criteria andFileUrlLike(String value) {
addCriterion("file_url like", value, "fileUrl");
return (Criteria) this;
}
public Criteria andFileUrlNotLike(String value) {
addCriterion("file_url not like", value, "fileUrl");
return (Criteria) this;
}
public Criteria andFileUrlIn(List<String> values) {
addCriterion("file_url in", values, "fileUrl");
return (Criteria) this;
}
public Criteria andFileUrlNotIn(List<String> values) {
addCriterion("file_url not in", values, "fileUrl");
return (Criteria) this;
}
public Criteria andFileUrlBetween(String value1, String value2) {
addCriterion("file_url between", value1, value2, "fileUrl");
return (Criteria) this;
}
public Criteria andFileUrlNotBetween(String value1, String value2) {
addCriterion("file_url not between", value1, value2, "fileUrl");
return (Criteria) this;
}
} }
public static class Criteria extends GeneratedCriteria { public static class Criteria extends GeneratedCriteria {
......
...@@ -95,17 +95,17 @@ ...@@ -95,17 +95,17 @@
from t_delivery from t_delivery
<where> <where>
<if test="deliveryOrder != null and deliveryOrder != ''"> and delivery_order = #{deliveryOrder}</if> <if test="deliveryOrder != null and deliveryOrder != ''"> and delivery_order = #{deliveryOrder}</if>
<if test="installOrder != null and installOrder != ''"> and install_order = #{installOrder}</if> <if test="installOrder != null and installOrder != ''"> and install_order like concat('%', #{installOrder}, '%')</if>
<if test="productBatch != null and productBatch != ''"> and product_batch = #{productBatch}</if> <if test="productBatch != null and productBatch != ''"> and product_batch = #{productBatch}</if>
<if test="quantity != null "> and quantity = #{quantity}</if> <if test="quantity != null "> and quantity = #{quantity}</if>
<if test="materialCategory != null and materialCategory != ''"> and material_category = #{materialCategory}</if> <if test="materialCategory != null and materialCategory != ''"> and material_category = #{materialCategory}</if>
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if> <if test="materialCode != null and materialCode != ''"> and material_code like concat('%', #{materialCode}, '%')</if>
<if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if> <if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if>
<if test="materialCompany != null and materialCompany != ''"> and material_company = #{materialCompany}</if> <if test="materialCompany != null and materialCompany != ''"> and material_company = #{materialCompany}</if>
<if test="logisticOrder != null and logisticOrder != ''"> and logistic_order = #{logisticOrder}</if> <if test="logisticOrder != null and logisticOrder != ''"> and logistic_order = #{logisticOrder}</if>
<if test="logisticCompany != null and logisticCompany != ''"> and logistic_company = #{logisticCompany}</if> <if test="logisticCompany != null and logisticCompany != ''"> and logistic_company = #{logisticCompany}</if>
<if test="logisticStatus != null and logisticStatus != ''"> and logistic_status = #{logisticStatus}</if> <if test="logisticStatus != null and logisticStatus != ''"> and logistic_status = #{logisticStatus}</if>
<if test="team != null and team != ''"> and team = #{team}</if> <if test="team != null and team != ''"> and team like concat('%', #{team}, '%')</if>
<if test="isproduct != null "> and isproduct = #{isproduct}</if> <if test="isproduct != null "> and isproduct = #{isproduct}</if>
<if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if> <if test="createdBy != null and createdBy != ''"> and CREATED_BY = #{createdBy}</if>
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if> <if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if>
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
<result column="CREATED_TIME" jdbcType="TIMESTAMP" property="createdTime" /> <result column="CREATED_TIME" jdbcType="TIMESTAMP" property="createdTime" />
<result column="UPDATED_BY" jdbcType="VARCHAR" property="updatedBy" /> <result column="UPDATED_BY" jdbcType="VARCHAR" property="updatedBy" />
<result column="UPDATED_TIME" jdbcType="TIMESTAMP" property="updatedTime" /> <result column="UPDATED_TIME" jdbcType="TIMESTAMP" property="updatedTime" />
<result column="file_url" jdbcType="VARCHAR" property="fileUrl" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
...@@ -83,7 +84,7 @@ ...@@ -83,7 +84,7 @@
id, received_order, install_order, product_batch, material_category, material_code, id, received_order, install_order, product_batch, material_category, material_code,
material_name, arrival_warehouse, arrival_warehouse_id, receiver, receiving_time, material_name, arrival_warehouse, arrival_warehouse_id, receiver, receiving_time,
arrival_quantity, auxiliary_id, isproduct, CREATED_BY, CREATED_TIME, UPDATED_BY, arrival_quantity, auxiliary_id, isproduct, CREATED_BY, CREATED_TIME, UPDATED_BY,
UPDATED_TIME UPDATED_TIME, file_url
</sql> </sql>
<select id="selectReceivedNoteList" parameterType="com.starcharge.wios.dao.entity.Receivednote" resultMap="BaseResultMap"> <select id="selectReceivedNoteList" parameterType="com.starcharge.wios.dao.entity.Receivednote" resultMap="BaseResultMap">
...@@ -92,12 +93,12 @@ ...@@ -92,12 +93,12 @@
from t_received_note from t_received_note
<where> <where>
<if test="receivedOrder != null and receivedOrder != ''"> and received_order = #{receivedOrder}</if> <if test="receivedOrder != null and receivedOrder != ''"> and received_order = #{receivedOrder}</if>
<if test="installOrder != null and installOrder != ''"> and install_order = #{installOrder}</if> <if test="installOrder != null and installOrder != ''"> and install_order like concat('%', #{installOrder}, '%')</if>
<if test="productBatch != null and productBatch != ''"> and product_batch = #{productBatch}</if> <if test="productBatch != null and productBatch != ''"> and product_batch = #{productBatch}</if>
<if test="materialCategory != null and materialCategory != ''"> and material_category = #{materialCategory}</if> <if test="materialCategory != null and materialCategory != ''"> and material_category = #{materialCategory}</if>
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if> <if test="materialCode != null and materialCode != ''"> and material_code like concat('%', #{materialCode}, '%')</if>
<if test="arrivalWarehouse != null and arrivalWarehouse != ''"> and arrival_warehouse = #{arrivalWarehouse}</if> <if test="arrivalWarehouse != null and arrivalWarehouse != ''"> and arrival_warehouse = #{arrivalWarehouse}</if>
<if test="arrivalWarehouseId != null "> and arrival_warehouse_id = #{arrivalWarehouseId}</if> <if test="arrivalWarehouseId != null "> and arrival_warehouse_id like concat('%', #{arrivalWarehouseId}, '%')</if>
<if test="receiver != null and receiver != ''"> and receiver = #{receiver}</if> <if test="receiver != null and receiver != ''"> and receiver = #{receiver}</if>
<if test="receivingTime != null "> and receiving_time = #{receivingTime}</if> <if test="receivingTime != null "> and receiving_time = #{receivingTime}</if>
<if test="arrivalQuantity != null "> and arrival_quantity = #{arrivalQuantity}</if> <if test="arrivalQuantity != null "> and arrival_quantity = #{arrivalQuantity}</if>
...@@ -107,10 +108,10 @@ ...@@ -107,10 +108,10 @@
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if> <if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if>
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if> <if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if>
<if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if> <if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if>
<if test="fileUrl != null "> and file_url = #{fileUrl}</if>
</where> </where>
</select> </select>
<select id="selectByExample" parameterType="com.starcharge.wios.dao.entity.ReceivednoteCriteria" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.starcharge.wios.dao.entity.ReceivednoteCriteria" resultMap="BaseResultMap">
select select
<if test="distinct"> <if test="distinct">
...@@ -150,13 +151,15 @@ ...@@ -150,13 +151,15 @@
arrival_warehouse, arrival_warehouse_id, receiver, arrival_warehouse, arrival_warehouse_id, receiver,
receiving_time, arrival_quantity, auxiliary_id, receiving_time, arrival_quantity, auxiliary_id,
isproduct, CREATED_BY, CREATED_TIME, isproduct, CREATED_BY, CREATED_TIME,
UPDATED_BY, UPDATED_TIME) UPDATED_BY, UPDATED_TIME, file_url
)
values (#{receivedOrder,jdbcType=VARCHAR}, #{installOrder,jdbcType=VARCHAR}, #{productBatch,jdbcType=VARCHAR}, values (#{receivedOrder,jdbcType=VARCHAR}, #{installOrder,jdbcType=VARCHAR}, #{productBatch,jdbcType=VARCHAR},
#{materialCategory,jdbcType=VARCHAR}, #{materialCode,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, #{materialCategory,jdbcType=VARCHAR}, #{materialCode,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR},
#{arrivalWarehouse,jdbcType=VARCHAR}, #{arrivalWarehouseId,jdbcType=INTEGER}, #{receiver,jdbcType=VARCHAR}, #{arrivalWarehouse,jdbcType=VARCHAR}, #{arrivalWarehouseId,jdbcType=INTEGER}, #{receiver,jdbcType=VARCHAR},
#{receivingTime,jdbcType=TIMESTAMP}, #{arrivalQuantity,jdbcType=INTEGER}, #{auxiliaryId,jdbcType=INTEGER}, #{receivingTime,jdbcType=TIMESTAMP}, #{arrivalQuantity,jdbcType=INTEGER}, #{auxiliaryId,jdbcType=INTEGER},
#{isproduct,jdbcType=VARCHAR}, #{createdBy,jdbcType=VARCHAR}, #{createdTime,jdbcType=TIMESTAMP}, #{isproduct,jdbcType=VARCHAR}, #{createdBy,jdbcType=VARCHAR}, #{createdTime,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=VARCHAR}, #{updatedTime,jdbcType=TIMESTAMP}) #{updatedBy,jdbcType=VARCHAR}, #{updatedTime,jdbcType=TIMESTAMP}, #{fileUrl,jdbcType=VARCHAR}
)
</insert> </insert>
<insert id="insertSelective" parameterType="com.starcharge.wios.dao.entity.Receivednote"> <insert id="insertSelective" parameterType="com.starcharge.wios.dao.entity.Receivednote">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
...@@ -215,6 +218,9 @@ ...@@ -215,6 +218,9 @@
<if test="updatedTime != null"> <if test="updatedTime != null">
UPDATED_TIME, UPDATED_TIME,
</if> </if>
<if test="fileUrl != null">
file_url,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="receivedOrder != null"> <if test="receivedOrder != null">
...@@ -268,6 +274,9 @@ ...@@ -268,6 +274,9 @@
<if test="updatedTime != null"> <if test="updatedTime != null">
#{updatedTime,jdbcType=TIMESTAMP}, #{updatedTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="fileUrl != null">
#{fileUrl,jdbcType=VARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.starcharge.wios.dao.entity.ReceivednoteCriteria" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.starcharge.wios.dao.entity.ReceivednoteCriteria" resultType="java.lang.Long">
...@@ -333,6 +342,9 @@ ...@@ -333,6 +342,9 @@
<if test="record.updatedTime != null"> <if test="record.updatedTime != null">
UPDATED_TIME = #{record.updatedTime,jdbcType=TIMESTAMP}, UPDATED_TIME = #{record.updatedTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="record.fileUrl != null">
file_url = #{record.fileUrl,jdbcType=VARCHAR},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
...@@ -357,7 +369,8 @@ ...@@ -357,7 +369,8 @@
CREATED_BY = #{record.createdBy,jdbcType=VARCHAR}, CREATED_BY = #{record.createdBy,jdbcType=VARCHAR},
CREATED_TIME = #{record.createdTime,jdbcType=TIMESTAMP}, CREATED_TIME = #{record.createdTime,jdbcType=TIMESTAMP},
UPDATED_BY = #{record.updatedBy,jdbcType=VARCHAR}, UPDATED_BY = #{record.updatedBy,jdbcType=VARCHAR},
UPDATED_TIME = #{record.updatedTime,jdbcType=TIMESTAMP} UPDATED_TIME = #{record.updatedTime,jdbcType=TIMESTAMP},
file_url = #{record.fileUrl,jdbcType=VARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -416,6 +429,9 @@ ...@@ -416,6 +429,9 @@
<if test="updatedTime != null"> <if test="updatedTime != null">
UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP}, UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="fileUrl != null">
file_url = #{fileUrl,jdbcType=VARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -437,7 +453,8 @@ ...@@ -437,7 +453,8 @@
CREATED_BY = #{createdBy,jdbcType=VARCHAR}, CREATED_BY = #{createdBy,jdbcType=VARCHAR},
CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP}, CREATED_TIME = #{createdTime,jdbcType=TIMESTAMP},
UPDATED_BY = #{updatedBy,jdbcType=VARCHAR}, UPDATED_BY = #{updatedBy,jdbcType=VARCHAR},
UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP} UPDATED_TIME = #{updatedTime,jdbcType=TIMESTAMP},
file_url = #{fileUrl,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
</mapper> </mapper>
\ No newline at end of file
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
left join wb_account wb on t.account_id=wb.id left join wb_account wb on t.account_id=wb.id
<where> <where>
<if test="rejectOrder != null and rejectOrder != ''"> and t.reject_order = #{rejectOrder}</if> <if test="rejectOrder != null and rejectOrder != ''"> and t.reject_order = #{rejectOrder}</if>
<if test="installOrder != null and installOrder != ''"> and t.install_order = #{installOrder}</if> <if test="installOrder != null and installOrder != ''"> and t.install_order like concat('%', #{installOrder}, '%')</if>
<if test="productBatch != null and productBatch != ''"> and t.product_batch = #{productBatch}</if> <if test="productBatch != null and productBatch != ''"> and t.product_batch = #{productBatch}</if>
<if test="quantity != null "> and t.quantity = #{quantity}</if> <if test="quantity != null "> and t.quantity = #{quantity}</if>
<if test="materialCategory != null and materialCategory != ''"> and t.material_category = #{materialCategory}</if> <if test="materialCategory != null and materialCategory != ''"> and t.material_category = #{materialCategory}</if>
......
...@@ -652,11 +652,11 @@ ...@@ -652,11 +652,11 @@
<if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if> <if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if>
<if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if> <if test="updatedBy != null and updatedBy != ''"> and UPDATED_BY = #{updatedBy}</if>
<if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if> <if test="updatedTime != null "> and UPDATED_TIME = #{updatedTime}</if>
<if test="installOrder != null and installOrder != ''"> and install_order = #{installOrder}</if> <if test="installOrder != null and installOrder != ''"> and install_order like concat('%', #{installOrder}, '%')</if>
<if test="specification != null and specification != ''"> and specification = #{specification}</if> <if test="specification != null and specification != ''"> and specification = #{specification}</if>
<if test="logisticOrder != null and logisticOrder != ''"> and logistic_order = #{logisticOrder}</if> <if test="logisticOrder != null and logisticOrder != ''"> and logistic_order = #{logisticOrder}</if>
<if test="applyInventory != null and applyInventory != ''"> and apply_inventory = #{applyInventory}</if> <if test="applyInventory != null and applyInventory != ''"> and apply_inventory = #{applyInventory}</if>
<if test="applyOrder != null and applyOrder != ''"> and apply_order = #{applyOrder}</if> <if test="applyOrder != null and applyOrder != ''"> and apply_order like concat('%', #{applyOrder}, '%')</if>
</where> </where>
</select> </select>
......
...@@ -140,7 +140,13 @@ public class ReceivednoteAddVo { ...@@ -140,7 +140,13 @@ public class ReceivednoteAddVo {
@ApiModelProperty(value = "辅料申请单号") @ApiModelProperty(value = "辅料申请单号")
private Integer auxiliaryId; private Integer auxiliaryId;
/**
* 文件地址
*
* @mbg.generated
*/
@ApiModelProperty(value = "文件地址")
private String fileUrl;
} }
......
package com.starcharge.wios.vo; package com.starcharge.wios.vo;
import com.alibaba.excel.annotation.ExcelProperty; import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.time.LocalDateTime; import java.time.LocalDateTime;
...@@ -154,4 +155,11 @@ public class ReceivednoteExcelVo { ...@@ -154,4 +155,11 @@ public class ReceivednoteExcelVo {
*/ */
@ExcelProperty(value = "更新时间") @ExcelProperty(value = "更新时间")
private LocalDateTime updatedTime; private LocalDateTime updatedTime;
/**
* 文件地址
*
* @mbg.generated
*/
@ExcelProperty(value = "文件地址")
private String fileUrl;
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论