feat: 新增检测单关联、基础数据优化与入库单升级
1. 新增出库单检测单号字段并添加索引支持溯源 2. 优化基础数据页面物料类型展示与选择逻辑 3. 升级入库单导入功能,支持自动生成单号并返回导入结果 4. 优化接驳台查询排序方式 5. 修复字符串拼接空格问题
This commit is contained in:
@@ -61,6 +61,8 @@ const (
|
||||
FieldBoxSnList = "box_sn_list"
|
||||
// FieldContractNo holds the string denoting the contract_no field in the database.
|
||||
FieldContractNo = "contract_no"
|
||||
// FieldInspectionNo holds the string denoting the inspection_no field in the database.
|
||||
FieldInspectionNo = "inspection_no"
|
||||
// FieldCreatedAt holds the string denoting the created_at field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the outboundorder in the database.
|
||||
@@ -95,6 +97,7 @@ var Columns = []string{
|
||||
FieldBoxNo,
|
||||
FieldBoxSnList,
|
||||
FieldContractNo,
|
||||
FieldInspectionNo,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
@@ -256,6 +259,11 @@ func ByContractNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldContractNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByInspectionNo orders the results by the inspection_no field.
|
||||
func ByInspectionNo(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldInspectionNo, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the created_at field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user