Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangweidong
patzn-cloud-service-hmhj
Commits
bb7753c7
Commit
bb7753c7
authored
Oct 11, 2021
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改进场物资编码问题;
parent
62ee1f91
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
82 additions
and
175 deletions
+82
-175
CodeRuleController.java
...loud/service/lims/hmhj/controller/CodeRuleController.java
+6
-7
IdentifierMapper.java
...atzn/cloud/service/lims/hmhj/mapper/IdentifierMapper.java
+0
-16
ICodeRuleService.java
...tzn/cloud/service/lims/hmhj/service/ICodeRuleService.java
+2
-0
IEntrustSampleService.java
...loud/service/lims/hmhj/service/IEntrustSampleService.java
+1
-0
IIdentifierService.java
...n/cloud/service/lims/hmhj/service/IIdentifierService.java
+0
-22
CodeRuleServiceImpl.java
...d/service/lims/hmhj/service/impl/CodeRuleServiceImpl.java
+21
-8
EntrustServiceImpl.java
...ud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
+2
-4
IdentifierServiceImpl.java
...service/lims/hmhj/service/impl/IdentifierServiceImpl.java
+0
-116
20211008新增字段.sql
src/test/java/resources/db_sql/hmhj/v170/20211008新增字段.sql
+50
-2
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/controller/CodeRuleController.java
View file @
bb7753c7
...
...
@@ -2,22 +2,20 @@ package com.patzn.cloud.service.lims.hmhj.controller;
import
com.baomidou.kisso.annotation.Action
;
import
com.baomidou.kisso.annotation.Login
;
import
com.patzn.cloud.service.hmhj.entity.CodeRule
;
import
com.patzn.cloud.service.lims.base.dto.CodeTypeDTO
;
import
com.patzn.cloud.service.lims.base.enums.CodeTypeEnum
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.plugins.Page
;
import
com.patzn.cloud.commons.api.RestConstants
;
import
com.patzn.cloud.commons.api.RestResult
;
import
com.patzn.cloud.commons.controller.ServiceController
;
import
com.patzn.cloud.service.hmhj.entity.CodeRule
;
import
com.patzn.cloud.service.lims.base.dto.CodeTypeDTO
;
import
com.patzn.cloud.service.lims.base.enums.CodeTypeEnum
;
import
com.patzn.cloud.service.lims.hmhj.service.ICodeRuleService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
...
...
@@ -44,6 +42,7 @@ public class CodeRuleController extends ServiceController {
})
@PostMapping
(
"/page"
)
public
RestResult
<
Page
<
CodeRule
>>
getPage
(
CodeRule
codeRule
)
{
codeRule
.
setRecessive
(
0
);
return
success
(
codeRuleService
.
page
(
getPage
(),
codeRule
));
}
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/mapper/IdentifierMapper.java
deleted
100644 → 0
View file @
62ee1f91
package
com
.
patzn
.
cloud
.
service
.
lims
.
hmhj
.
mapper
;
import
com.patzn.cloud.commons.mapper.BatchMapper
;
import
com.patzn.cloud.service.hmhj.entity.Identifier
;
/**
* <p>
* Mapper 接口
* </p>
*
* @author meazty
* @since 2021-10-09
*/
public
interface
IdentifierMapper
extends
BatchMapper
<
Identifier
>
{
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/ICodeRuleService.java
View file @
bb7753c7
...
...
@@ -23,4 +23,6 @@ public interface ICodeRuleService extends IBaseService<CodeRule> {
String
getCodeKey
(
CodeTypeDTO
dto
);
String
getKey
(
Integer
codeType
,
String
codeName
,
BaseEntity
entity
);
String
getKey
(
String
prefix
,
String
rule
,
BaseEntity
entity
);
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/IEntrustSampleService.java
View file @
bb7753c7
...
...
@@ -130,4 +130,5 @@ public interface IEntrustSampleService extends IBaseService<EntrustSample> {
Page
<
EntrustSampleIndexVO
>
getPageSampleIndex
(
Page
<
EntrustSampleIndexVO
>
page
,
EntrustSampleIndexVO
sampleIndexVO
);
void
exportSampleIndex
(
Long
entrustId
,
Account
account
,
HttpServletResponse
response
);
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/IIdentifierService.java
deleted
100644 → 0
View file @
62ee1f91
package
com
.
patzn
.
cloud
.
service
.
lims
.
hmhj
.
service
;
import
com.baomidou.mybatisplus.plugins.Page
;
import
com.patzn.cloud.commons.service.IBaseService
;
import
com.patzn.cloud.service.hmhj.entity.Identifier
;
import
java.util.List
;
/**
* 服务类
*
* @author meazty
* @since 2021-10-09
*/
public
interface
IIdentifierService
extends
IBaseService
<
Identifier
>
{
Page
<
Identifier
>
page
(
Page
<
Identifier
>
page
,
Identifier
identifier
);
boolean
removeByIds
(
List
<
Long
>
ids
);
String
getNextSN
(
String
type
);
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/CodeRuleServiceImpl.java
View file @
bb7753c7
package
com
.
patzn
.
cloud
.
service
.
lims
.
hmhj
.
service
.
impl
;
import
com.baomidou.mybatisplus.mapper.Condition
;
import
com.baomidou.mybatisplus.mapper.EntityWrapper
;
import
com.baomidou.mybatisplus.mapper.Wrapper
;
import
com.baomidou.mybatisplus.plugins.Page
;
import
com.patzn.cloud.commons.api.RestAssert
;
import
com.patzn.cloud.commons.constant.CommonConstants
;
import
com.patzn.cloud.commons.service.impl.BaseServiceImpl
;
import
com.patzn.cloud.commons.toolkit.CodeKeyUtils
;
import
com.patzn.cloud.commons.toolkit.FreemarkerUtils
;
import
com.patzn.cloud.commons.toolkit.JacksonUtils
;
...
...
@@ -12,18 +16,14 @@ import com.patzn.cloud.service.CodeRuleHelper;
import
com.patzn.cloud.service.hmhj.entity.CodeRule
;
import
com.patzn.cloud.service.lims.base.dto.CodeTypeDTO
;
import
com.patzn.cloud.service.lims.base.entity.LmsBaseDict
;
import
com.patzn.cloud.service.lims.base.entity.LmsCodeRule
;
import
com.patzn.cloud.service.lims.common.StringHandleUtils
;
import
com.patzn.cloud.service.lims.hmhj.mapper.CodeRuleMapper
;
import
com.patzn.cloud.service.lims.hmhj.service.ICodeRuleRecordService
;
import
com.patzn.cloud.service.lims.hmhj.service.ICodeRuleService
;
import
com.patzn.cloud.commons.service.impl.BaseServiceImpl
;
import
org.apache.commons.lang3.StringUtils
;
import
org.joda.time.DateTime
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.mapper.EntityWrapper
;
import
com.baomidou.mybatisplus.mapper.Wrapper
;
import
com.baomidou.mybatisplus.plugins.Page
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.HashMap
;
...
...
@@ -71,6 +71,10 @@ public class CodeRuleServiceImpl extends BaseServiceImpl<CodeRuleMapper, CodeRul
}
CodeRule
codeRule
=
super
.
getOne
(
Condition
.
create
().
eq
(
"type"
,
codeType
).
last
(
"LIMIT 1"
));
return
getCodeKey
(
codeRule
,
codeName
,
entity
);
}
private
String
getCodeKey
(
CodeRule
codeRule
,
String
codeName
,
BaseEntity
entity
)
{
if
(
null
==
codeRule
)
{
RestAssert
.
fail
(
codeName
+
"不存在请配置规则"
);
}
...
...
@@ -114,9 +118,9 @@ public class CodeRuleServiceImpl extends BaseServiceImpl<CodeRuleMapper, CodeRul
LmsBaseDict
baseDict
=
new
LmsBaseDict
();
baseDict
.
setType
(
dictArr
[
0
]);
baseDict
.
setName
(
FreemarkerUtils
.
process
(
dictArr
[
1
],
model
));
LmsBaseDict
dict
=
lmsBaseDictClient
.
getDictByNameType
(
baseDict
).
serviceData
();
if
(
null
!=
dict
)
{
baseDict
.
setName
(
FreemarkerUtils
.
process
(
dictArr
[
1
],
model
));
LmsBaseDict
dict
=
lmsBaseDictClient
.
getDictByNameType
(
baseDict
).
serviceData
();
if
(
null
!=
dict
)
{
key
.
append
(
dict
.
getCode
());
}
}
...
...
@@ -165,4 +169,13 @@ public class CodeRuleServiceImpl extends BaseServiceImpl<CodeRuleMapper, CodeRul
}
return
next
;
}
@Override
public
String
getKey
(
String
prefix
,
String
rule
,
BaseEntity
entity
)
{
RestAssert
.
fail
(
StringUtils
.
isBlank
(
rule
),
"配置的规则为空"
);
RestAssert
.
fail
(
StringUtils
.
isBlank
(
prefix
),
"配置的规则前缀为空"
);
CodeRule
codeRule
=
super
.
getOne
(
Condition
.
create
().
eq
(
"pre"
,
prefix
).
eq
(
"rule"
,
rule
).
last
(
"LIMIT 1"
));
RestAssert
.
fail
(
null
==
codeRule
,
"隐性编号规则不存在"
);
return
getCodeKey
(
codeRule
,
"隐性规则"
+
prefix
,
entity
);
}
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
View file @
bb7753c7
...
...
@@ -111,9 +111,6 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
private
OssClient
ossClient
;
@Autowired
private
IIdentifierService
identifierService
;
@Autowired
private
IMaterialService
materialService
;
...
...
@@ -345,7 +342,7 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
type
=
HmConst
.
SECOND_PERIOD
.
equals
(
period
)
?
"A"
:
"B"
;
}
type
=
type
+
(
abbr
.
length
()
>
2
?
abbr
:
abbr
+
"0"
);
String
code
=
identifierService
.
getNextSN
(
type
.
toUpperCase
()
);
String
code
=
codeRuleService
.
getKey
(
type
.
toUpperCase
(),
"SN&@yyMMdd"
,
sample
);
return
code
;
}
...
...
@@ -1595,4 +1592,5 @@ public class EntrustServiceImpl extends BaseServiceImpl<EntrustMapper, Entrust>
public
Page
<
EntrustVO
>
getPageReportProduct
(
Page
<
EntrustVO
>
page
,
EntrustVO
entrust
)
{
return
page
.
setRecords
(
baseMapper
.
selectVOList
(
page
,
entrust
));
}
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/IdentifierServiceImpl.java
deleted
100644 → 0
View file @
62ee1f91
package
com
.
patzn
.
cloud
.
service
.
lims
.
hmhj
.
service
.
impl
;
import
com.baomidou.mybatisplus.mapper.Condition
;
import
com.baomidou.mybatisplus.mapper.EntityWrapper
;
import
com.baomidou.mybatisplus.mapper.Wrapper
;
import
com.baomidou.mybatisplus.plugins.Page
;
import
com.patzn.cloud.commons.api.RestAssert
;
import
com.patzn.cloud.commons.constant.CommonConstants
;
import
com.patzn.cloud.commons.exception.PatznException
;
import
com.patzn.cloud.commons.service.impl.BaseServiceImpl
;
import
com.patzn.cloud.commons.toolkit.FreemarkerUtils
;
import
com.patzn.cloud.service.hmhj.entity.Identifier
;
import
com.patzn.cloud.service.lims.common.StringHandleUtils
;
import
com.patzn.cloud.service.lims.hmhj.mapper.IdentifierMapper
;
import
com.patzn.cloud.service.lims.hmhj.service.IIdentifierService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.joda.time.DateTime
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* 服务实现类
*
* @author meazty
* @since 2021-10-09
*/
@Service
public
class
IdentifierServiceImpl
extends
BaseServiceImpl
<
IdentifierMapper
,
Identifier
>
implements
IIdentifierService
{
@Override
public
Page
<
Identifier
>
page
(
Page
<
Identifier
>
page
,
Identifier
identifier
)
{
Wrapper
wrapper
=
new
EntityWrapper
<>(
identifier
);
return
this
.
page
(
page
,
wrapper
);
}
@Override
public
boolean
removeByIds
(
List
<
Long
>
ids
)
{
return
baseMapper
.
deleteBatchIds
(
ids
)
>
0
;
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
String
getNextSN
(
String
type
)
{
if
(
StringUtils
.
isBlank
(
type
))
{
throw
new
PatznException
(
"编号类型不能为空"
);
}
Identifier
identifier
=
super
.
getOne
(
Condition
.
create
().
eq
(
"type"
,
type
).
last
(
"LIMIT 1"
));
if
(
null
==
identifier
)
{
throw
new
PatznException
(
"请配置编号规则"
);
}
StringBuilder
key
=
new
StringBuilder
();
// 前缀规则
if
(
null
!=
identifier
.
getPrefix
())
{
key
.
append
(
identifier
.
getPrefix
());
}
String
[]
rules
=
identifier
.
getRule
().
split
(
"&"
);
Map
<
String
,
Object
>
model
=
new
HashMap
<>(
2
);
for
(
String
rule
:
rules
)
{
// 日期规则
if
(
rule
.
contains
(
"@"
))
{
if
(
"@YY"
.
equalsIgnoreCase
(
rule
))
{
key
.
append
(
new
DateTime
().
toString
(
"YYYY"
).
substring
(
2
));
}
else
{
key
.
append
(
new
DateTime
().
toString
(
rule
.
substring
(
1
)));
}
}
else
if
(
rule
.
contains
(
"%"
))
{
String
myRules
=
rule
.
replace
(
"%"
,
""
).
replace
(
"{"
,
""
).
replace
(
"}"
,
""
);
String
[]
dictArr
=
myRules
.
split
(
"\\."
);
if
(
null
!=
dictArr
[
1
])
{
key
.
append
(
StringHandleUtils
.
getFieldValueByFieldName
(
dictArr
[
1
],
model
.
get
(
"et"
)));
}
}
// 属性规则
else
if
(
rule
.
contains
(
"$"
))
{
try
{
key
.
append
(
FreemarkerUtils
.
process
(
rule
,
model
));
}
catch
(
Exception
e
)
{
RestAssert
.
fail
(
"编号生成异常,请联系管理员"
);
}
}
// SN 序列号
else
if
(
"SN"
.
equals
(
rule
))
{
key
.
append
(
CommonConstants
.
SN
);
}
// 原样输出
else
{
key
.
append
(
rule
);
}
}
// 更新SN,限定长度最高9位
String
sn
=
""
;
StringBuilder
sb
=
new
StringBuilder
(
"0"
);
int
snInt
=
null
==
identifier
.
getSn
()
?
0
:
identifier
.
getSn
(),
lens
=
null
==
identifier
.
getLength
()
?
1
:
identifier
.
getLength
();
while
(
sb
.
length
()
<
lens
)
{
sb
.
append
(
"0"
);
}
String
defZero
=
sb
.
toString
();
sn
=
defZero
.
substring
(
0
,
defZero
.
length
()
-
Integer
.
toString
(
snInt
).
length
());
snInt
+=
1
;
if
(
Integer
.
toString
(
snInt
).
length
()
>
lens
)
{
identifier
.
setLength
(++
lens
);
}
identifier
.
setSn
(
snInt
);
updateById
(
identifier
);
return
key
.
toString
().
replaceAll
(
CommonConstants
.
SN
,
sn
);
}
}
src/test/java/resources/db_sql/hmhj/v170/20211008新增字段.sql
View file @
bb7753c7
/** c
reated by meazty on 2021/10/8 15:50 **/
/** c
reated by meazty on 2021/10/8 15:50 **/
/** created by meazty on 2021/10/8 15:50 **/
-- 样品物资 --
ALTER
TABLE
"public"
.
"material"
ADD
COLUMN
"factory_area"
varchar
(
64
)
COLLATE
"pg_catalog"
.
"default"
,
ADD
COLUMN
"abbr"
varchar
(
64
)
COLLATE
"pg_catalog"
.
"default"
;
...
...
@@ -7,9 +8,56 @@ COMMENT ON COLUMN "public"."material"."factory_area" IS '厂区';
COMMENT
ON
COLUMN
"public"
.
"material"
.
"abbr"
IS
'缩写'
;
-- 委托报告 --
ALTER
TABLE
"public"
.
"entrust_report"
ADD
COLUMN
"other_object_key"
varchar
(
64
)
COLLATE
"pg_catalog"
.
"default"
,
ADD
COLUMN
"other_object_key"
varchar
(
64
)
COLLATE
"pg_catalog"
.
"default"
,
ADD
COLUMN
"other_pdf_object_key"
varchar
(
64
)
COLLATE
"pg_catalog"
.
"default"
;
COMMENT
ON
COLUMN
"public"
.
"entrust_report"
.
"other_object_key"
IS
'其他对象Key'
;
COMMENT
ON
COLUMN
"public"
.
"entrust_report"
.
"other_pdf_object_key"
IS
'其他对象PdfKey'
;
-- 编码规则 --
ALTER
TABLE
"public"
.
"code_rule"
ADD
COLUMN
"recessive"
int2
default
0
;
COMMENT
ON
COLUMN
"public"
.
"code_rule"
.
"recessive"
IS
'是否隐性规则【0:显性,1:隐性】'
;
-- 编码规则数据 --
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
1
,
1356149618195193858
,
'ADJZ'
,
0
,
'SN&@yyMMdd'
,
101
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
2
,
1356149618195193858
,
'BDJZ'
,
0
,
'SN&@yyMMdd'
,
102
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
3
,
1356149618195193858
,
'ACJ0'
,
0
,
'SN&@yyMMdd'
,
103
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
4
,
1356149618195193858
,
'BCJ0'
,
0
,
'SN&@yyMMdd'
,
104
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
5
,
1356149618195193858
,
'ACJ0'
,
0
,
'SN&@yyMMdd'
,
105
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
6
,
1356149618195193858
,
'AFHG'
,
0
,
'SN&@yyMMdd'
,
106
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
7
,
1356149618195193858
,
'BFHG'
,
0
,
'SN&@yyMMdd'
,
107
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
8
,
1356149618195193858
,
'ASHS'
,
0
,
'SN&@yyMMdd'
,
108
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
9
,
1356149618195193858
,
'BSHS'
,
0
,
'SN&@yyMMdd'
,
109
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
10
,
1356149618195193858
,
'ATNS'
,
0
,
'SN&@yyMMdd'
,
110
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
11
,
1356149618195193858
,
'BTNS'
,
0
,
'SN&@yyMMdd'
,
111
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
12
,
1356149618195193858
,
'ALST'
,
0
,
'SN&@yyMMdd'
,
112
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
13
,
1356149618195193858
,
'BLST'
,
0
,
'SN&@yyMMdd'
,
113
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
14
,
1356149618195193858
,
'AST0'
,
0
,
'SN&@yyMMdd'
,
114
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
15
,
1356149618195193858
,
'BST0'
,
0
,
'SN&@yyMMdd'
,
115
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
16
,
1356149618195193858
,
'AMT0'
,
0
,
'SN&@yyMMdd'
,
116
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
17
,
1356149618195193858
,
'BMT0'
,
0
,
'SN&@yyMMdd'
,
117
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
18
,
1356149618195193858
,
'ALT0'
,
0
,
'SN&@yyMMdd'
,
118
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
19
,
1356149618195193858
,
'BLT0'
,
0
,
'SN&@yyMMdd'
,
119
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
20
,
1356149618195193858
,
'AGT0'
,
0
,
'SN&@yyMMdd'
,
120
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
21
,
1356149618195193858
,
'BGT0'
,
0
,
'SN&@yyMMdd'
,
121
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
22
,
1356149618195193858
,
'AGZ0'
,
0
,
'SN&@yyMMdd'
,
122
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
23
,
1356149618195193858
,
'BGZ0'
,
0
,
'SN&@yyMMdd'
,
123
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
24
,
1356149618195193858
,
'AYHL'
,
11
,
'SN&@yyMMdd'
,
124
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
25
,
1356149618195193858
,
'BYHL'
,
0
,
'SN&@yyMMdd'
,
125
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
26
,
1356149618195193858
,
'AFHL'
,
0
,
'SN&@yyMMdd'
,
126
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
27
,
1356149618195193858
,
'BFHL'
,
0
,
'SN&@yyMMdd'
,
127
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
28
,
1356149618195193858
,
'ABJS'
,
0
,
'SN&@yyMMdd'
,
128
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
29
,
1356149618195193858
,
'BBJS'
,
0
,
'SN&@yyMMdd'
,
129
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
30
,
1356149618195193858
,
'AZSB'
,
0
,
'SN&@yyMMdd'
,
130
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
31
,
1356149618195193858
,
'BZSB'
,
0
,
'SN&@yyMMdd'
,
131
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
32
,
1356149618195193858
,
'DJ'
,
0
,
'SN&@yyMMdd'
,
132
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
33
,
1356149618195193858
,
'SJ'
,
0
,
'SN&@yyMMdd'
,
133
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
34
,
1356149618195193858
,
'LQ'
,
0
,
'SN&@yyMMdd'
,
134
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
35
,
1356149618195193858
,
'SK'
,
0
,
'SN&@yyMMdd'
,
135
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
36
,
1356149618195193858
,
'TK'
,
0
,
'SN&@yyMMdd'
,
136
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
INSERT
INTO
"public"
.
"code_rule"
(
"id"
,
"company_id"
,
"pre"
,
"sn"
,
"rule"
,
"type"
,
"repeat"
,
"length"
,
"ctime"
,
"sublength"
,
"continue_sn"
,
"ignore_num"
,
"remark"
,
"recessive"
)
VALUES
(
37
,
1356149618195193858
,
'RY'
,
0
,
'SN&@yyMMdd'
,
137
,
0
,
2
,
'2021-10-09 14:34:08'
,
0
,
0
,
NULL
,
NULL
,
1
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment