Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
wios
概览
Overview
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
苗卫卫
wios
Commits
957f6f8f
提交
957f6f8f
authored
11月 24, 2023
作者:
zhangqiliang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
发货管理的新增,查询,确认发货接口;收货管理的查询,确认收货接口;
父级
b3c0e926
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
109 行增加
和
16 行删除
+109
-16
src/main/java/com/starcharge/wios/controller/DeliveryController.java
+5
-2
src/main/java/com/starcharge/wios/controller/ReceivedNoteController.java
+23
-11
src/main/java/com/starcharge/wios/dao/entity/Delivery.java
+29
-0
src/main/java/com/starcharge/wios/dao/mappers/DeliveryMapper.xml
+23
-3
src/main/java/com/starcharge/wios/dto/DeliveryUpdateDTO.java
+22
-0
src/main/java/com/starcharge/wios/vo/DeliveryAddVo.java
+7
-0
没有找到文件。
src/main/java/com/starcharge/wios/controller/DeliveryController.java
查看文件 @
957f6f8f
...
...
@@ -35,6 +35,7 @@ import org.springframework.web.bind.annotation.*;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
/**
...
...
@@ -89,8 +90,10 @@ public class DeliveryController {
}
@PostMapping
(
"/query"
)
@ApiOperation
(
value
=
"发货列表查询"
)
public
BaseResponse
<
List
<
Delivery
>>
queryDelivery
(
Delivery
Delivery
){
return
new
BaseResponse
(
this
.
deliveryMapper
.
selectDeliveryList
(
Delivery
));
public
BaseResponse
<
List
<
Delivery
>>
queryDelivery
(
Delivery
delivery
){
List
<
String
>
list
=
Arrays
.
asList
(
"已发货"
);
delivery
.
setStatusList
(
list
);
return
new
BaseResponse
(
this
.
deliveryMapper
.
selectDeliveryList
(
delivery
));
}
@GetMapping
(
"/detail"
)
@ApiOperation
(
value
=
"发货详情"
)
...
...
src/main/java/com/starcharge/wios/controller/ReceivedNoteController.java
查看文件 @
957f6f8f
...
...
@@ -3,8 +3,11 @@ package com.starcharge.wios.controller;
import
com.ihidea.component.api.v2.BaseResponse
;
import
com.starcharge.wios.auth.service.TokenService
;
import
com.starcharge.wios.convert.ReceivednoteConvert
;
import
com.starcharge.wios.dao.entity.Delivery
;
import
com.starcharge.wios.dao.entity.Receivednote
;
import
com.starcharge.wios.dao.mappers.DeliveryMapper
;
import
com.starcharge.wios.dao.mappers.ReceivednoteMapper
;
import
com.starcharge.wios.dto.DeliveryUpdateDTO
;
import
com.starcharge.wios.service.CommonUpdateService
;
import
com.starcharge.wios.service.SnowFlakeService
;
import
com.starcharge.wios.utils.ExcelUtils
;
...
...
@@ -22,6 +25,7 @@ import org.springframework.web.bind.annotation.*;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.Arrays
;
import
java.util.List
;
/**
...
...
@@ -43,8 +47,10 @@ public class ReceivedNoteController {
private
CommonUpdateService
commonUpdateService
;
@Autowired
private
SnowFlakeService
snowFlakeService
;
@Autowired
private
DeliveryMapper
deliveryMapper
;
@PostMapping
(
"/add"
)
/*
@PostMapping("/add")
@ApiOperation(value = "新增收货",notes = "新增收货,返回成功条数")
@ParamsValidate
public BaseResponse<Integer> AddReceivednote(@RequestBody @Validated(CreateEntityGroup.class) ReceivednoteAddVo receivednoteAddVo, BindingResult bindingResult){
...
...
@@ -57,28 +63,34 @@ public class ReceivedNoteController {
this.commonUpdateService.UpdateColumns(receivednote,true);
return this.receivednoteMapper.insertSelective(receivednote);
}).reduce(0,Integer::sum));
}
}
*/
@PostMapping
(
"/query"
)
@ApiOperation
(
value
=
"收货列表查询"
)
public
BaseResponse
<
List
<
Receivednote
>>
queryReceivednote
(
Receivednote
receivednote
){
return
new
BaseResponse
<>(
this
.
receivednoteMapper
.
selectReceivedNoteList
(
receivednote
));
public
BaseResponse
<
List
<
Delivery
>>
queryReceivednote
(
Delivery
delivery
){
//return new BaseResponse<>(this.receivednoteMapper.selectReceivedNoteList(receivednote));
List
<
String
>
list
=
Arrays
.
asList
(
"已发货"
,
"已收货"
);
delivery
.
setStatusList
(
list
);
return
new
BaseResponse
(
this
.
deliveryMapper
.
selectDeliveryList
(
delivery
));
}
@GetMapping
(
"/detail"
)
@ApiOperation
(
value
=
"收货详情"
)
public
BaseResponse
<
Receivednote
>
getdetail
(
@RequestParam
int
id
){
return
new
BaseResponse
<>(
this
.
receivednoteMapper
.
selectByPrimaryKey
(
id
));
public
BaseResponse
<
Delivery
>
getdetail
(
@RequestParam
int
id
){
//return new BaseResponse<>(this.receivednoteMapper.selectByPrimaryKey(id));
return
new
BaseResponse
(
this
.
deliveryMapper
.
selectByPrimaryKey
(
id
));
}
@GetMapping
(
"/delete"
)
/*
@GetMapping("/delete")
@ApiOperation(value = "删除收货信息")
public BaseResponse<Integer> delete(@RequestParam int id){
return new BaseResponse(this.receivednoteMapper.deleteByPrimaryKey(id));
}
}
*/
@PostMapping
(
"/update"
)
@ApiOperation
(
"更新收货单信息"
)
@ParamsValidate
public
BaseResponse
<
Receivednote
>
update
(
@RequestBody
@Validated
(
UpdateEntityGroup
.
class
)
Receivednote
receivednote
,
BindingResult
bindingResult
){
this
.
commonUpdateService
.
UpdateColumns
(
receivednote
,
false
);
return
new
BaseResponse
(
this
.
receivednoteMapper
.
updateByPrimaryKeySelective
(
receivednote
));
public
BaseResponse
<
DeliveryUpdateDTO
>
update
(
@RequestBody
@Validated
(
UpdateEntityGroup
.
class
)
DeliveryUpdateDTO
deliveryUpdateDTO
,
BindingResult
bindingResult
){
/*this.commonUpdateService.UpdateColumns(receivednote,false);
return new BaseResponse(this.receivednoteMapper.updateByPrimaryKeySelective(receivednote));*/
this
.
commonUpdateService
.
UpdateColumns
(
deliveryUpdateDTO
,
false
);
return
new
BaseResponse
(
this
.
deliveryMapper
.
updateByPrimaryKeySelective
(
deliveryUpdateDTO
));
}
@PostMapping
(
"/export"
)
...
...
src/main/java/com/starcharge/wios/dao/entity/Delivery.java
查看文件 @
957f6f8f
...
...
@@ -264,6 +264,35 @@ public class Delivery extends PageVo implements Serializable {
*/
@ApiModelProperty
(
value
=
"退货的物流单号"
)
private
String
rejectLogisticOrder
;
/**
* 到货数量
*
* @mbg.generated
*/
@ApiModelProperty
(
value
=
"到货数量"
)
private
Integer
arrivalQuantity
;
/**
* 辅料申请单号
*
* @mbg.generated
*/
@ApiModelProperty
(
value
=
"辅料申请单号"
)
private
Integer
auxiliaryId
;
/**
* 文件地址
*
* @mbg.generated
*/
@ApiModelProperty
(
value
=
"文件地址"
)
private
String
fileUrl
;
/**
* 物料的SN号
*
* @mbg.generated
*/
@ApiModelProperty
(
value
=
"物料的SN号"
)
private
String
materialSn
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
src/main/java/com/starcharge/wios/dao/mappers/DeliveryMapper.xml
查看文件 @
957f6f8f
...
...
@@ -33,6 +33,10 @@
<result
column=
"check_suggestion"
jdbcType=
"VARCHAR"
property=
"checkSuggestion"
/>
<result
column=
"out_order_id"
jdbcType=
"VARCHAR"
property=
"outOrderId"
/>
<result
column=
"reject_logistic_order"
jdbcType=
"VARCHAR"
property=
"rejectLogisticOrder"
/>
<result
column=
"arrival_quantity"
jdbcType=
"VARCHAR"
property=
"arrivalQuantity"
/>
<result
column=
"auxiliary_id"
jdbcType=
"VARCHAR"
property=
"auxiliaryId"
/>
<result
column=
"file_url"
jdbcType=
"VARCHAR"
property=
"fileUrl"
/>
<result
column=
"material_sn"
jdbcType=
"VARCHAR"
property=
"materialSn"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
...
...
@@ -96,7 +100,8 @@
id, delivery_order, install_order, product_batch, quantity, material_category, material_code,
material_name, material_company, logistic_order, logistic_company, logistic_status,
team, isproduct, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, arrival_warehouse,
arrival_warehouse_id, receiver,remarks,reject_material,reason,status,check_time,check_user,check_user_name,check_suggestion,reject_logistic_order
arrival_warehouse_id, receiver,remarks,reject_material,reason,status,check_time,check_user,check_user_name,check_suggestion,reject_logistic_order,
arrival_quantity,auxiliary_id,file_url,material_sn
</sql>
<select
id=
"selectDeliveryList"
parameterType=
"com.starcharge.wios.dao.entity.Delivery"
resultMap=
"BaseResultMap"
>
...
...
@@ -116,7 +121,7 @@
<if
test=
"logisticCompany != null and logisticCompany != ''"
>
and logistic_company = #{logisticCompany}
</if>
<if
test=
"logisticStatus != null and logisticStatus != ''"
>
and logistic_status = #{logisticStatus}
</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 != ''
"
>
and isproduct = #{isproduct}
</if>
<if
test=
"createdBy != null and createdBy != ''"
>
and CREATED_BY = #{createdBy}
</if>
<if
test=
"createdTime != null "
>
and CREATED_TIME = #{createdTime}
</if>
<if
test=
"updatedBy != null and updatedBy != ''"
>
and UPDATED_BY = #{updatedBy}
</if>
...
...
@@ -155,7 +160,7 @@
t.material_name, t.material_company, t.logistic_order, t.logistic_company, t.logistic_status,
t.team, t.isproduct, t.CREATED_BY, t.CREATED_TIME, t.UPDATED_BY, t.UPDATED_TIME, t.arrival_warehouse,
t.arrival_warehouse_id, t.receiver,t.remarks,t.reject_material,t.reason,t.status,t.check_time,t.check_user,t.check_user_name,t.check_suggestion,
e.out_order_id,t.reject_logistic_order
e.out_order_id,t.reject_logistic_order
,t.arrival_quantity,t.auxiliary_id,t.file_url,t.material_sn
from t_delivery t
left join t_order e on e.id = t.install_order
where t.id = #{id,jdbcType=INTEGER}
...
...
@@ -255,6 +260,9 @@
<if
test=
"receiver != null"
>
receiver,
</if>
<if
test=
"materialSn != null"
>
material_sn,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"deliveryOrder != null"
>
...
...
@@ -317,6 +325,9 @@
<if
test=
"receiver != null"
>
#{receiver,jdbcType=VARCHAR},
</if>
<if
test=
"materialSn != null"
>
#{materialSn,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.starcharge.wios.dao.entity.DeliveryCriteria"
resultType=
"java.lang.Long"
>
...
...
@@ -513,6 +524,15 @@
<if
test=
"rejectLogisticOrder != null"
>
reject_logistic_order = #{rejectLogisticOrder,jdbcType=VARCHAR},
</if>
<if
test=
"arrivalQuantity != null"
>
arrival_quantity = #{arrivalQuantity,jdbcType=VARCHAR},
</if>
<if
test=
"auxiliaryId != null"
>
auxiliary_id = #{auxiliaryId,jdbcType=VARCHAR},
</if>
<if
test=
"fileUrl != null"
>
file_url = #{fileUrl,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
...
...
src/main/java/com/starcharge/wios/dto/DeliveryUpdateDTO.java
查看文件 @
957f6f8f
...
...
@@ -256,6 +256,28 @@ public class DeliveryUpdateDTO{
*/
@ApiModelProperty
(
value
=
"退货的物流单号"
)
private
String
rejectLogisticOrder
;
/**
* 到货数量
*
* @mbg.generated
*/
@ApiModelProperty
(
value
=
"到货数量"
)
private
Integer
arrivalQuantity
;
/**
* 辅料申请单号
*
* @mbg.generated
*/
@ApiModelProperty
(
value
=
"辅料申请单号"
)
private
Integer
auxiliaryId
;
/**
* 文件地址
*
* @mbg.generated
*/
@ApiModelProperty
(
value
=
"文件地址"
)
private
String
fileUrl
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
src/main/java/com/starcharge/wios/vo/DeliveryAddVo.java
查看文件 @
957f6f8f
...
...
@@ -166,4 +166,11 @@ public class DeliveryAddVo {
*/
@ApiModelProperty
(
value
=
"收货人"
)
private
String
receiver
;
/**
* 物料的SN号
*
* @mbg.generated
*/
@ApiModelProperty
(
value
=
"物料的SN号"
)
private
String
materialSn
;
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论