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
56276086
Commit
56276086
authored
Jul 09, 2021
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改相关优化项目;
parent
4bc79874
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
282 additions
and
50 deletions
+282
-50
EntrustController.java
...cloud/service/lims/hmhj/controller/EntrustController.java
+42
-3
EntrustSampleBackupController.java
...e/lims/hmhj/controller/EntrustSampleBackupController.java
+1
-1
EntrustSampleController.java
...service/lims/hmhj/controller/EntrustSampleController.java
+52
-0
EntrustSampleBackupMapper.java
...d/service/lims/hmhj/mapper/EntrustSampleBackupMapper.java
+2
-0
IEntrustSampleBackupService.java
...ervice/lims/hmhj/service/IEntrustSampleBackupService.java
+2
-0
IEntrustService.java
...atzn/cloud/service/lims/hmhj/service/IEntrustService.java
+7
-1
EntrustSampleBackupServiceImpl.java
...ims/hmhj/service/impl/EntrustSampleBackupServiceImpl.java
+5
-0
EntrustSampleServiceImpl.java
...vice/lims/hmhj/service/impl/EntrustSampleServiceImpl.java
+0
-1
EntrustServiceImpl.java
...ud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
+102
-41
EntrustSampleBackupMapper.xml
src/main/resources/mapper/hmhj/EntrustSampleBackupMapper.xml
+47
-0
20210708添加记录表和字段.sql
...test/java/resources/db_sql/hmhj/v145/20210708添加记录表和字段.sql
+6
-3
20210709添加字段.sql
src/test/java/resources/db_sql/hmhj/v146/20210709添加字段.sql
+16
-0
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/controller/EntrustController.java
View file @
56276086
...
@@ -168,6 +168,32 @@ public class EntrustController extends ServiceController {
...
@@ -168,6 +168,32 @@ public class EntrustController extends ServiceController {
return
success
(
entrustService
.
page
(
getPage
(),
entrust
));
return
success
(
entrustService
.
page
(
getPage
(),
entrust
));
}
}
@ApiOperation
(
"委托修改审批分页列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_PAGE
,
value
=
"请求数据的页码"
,
required
=
true
,
paramType
=
"query"
,
dataTypeClass
=
Integer
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_ROWS
,
value
=
"每页条数"
,
required
=
true
,
paramType
=
"query"
,
dataTypeClass
=
Integer
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SIDX
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataTypeClass
=
String
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SORD
,
value
=
"排序方式"
,
paramType
=
"query"
,
dataTypeClass
=
String
.
class
),
})
@PostMapping
(
"/page_change_approve"
)
public
RestResult
<
Page
<
Entrust
>>
getPageChangeApprove
(
Entrust
entrust
)
{
entrust
.
setApproveStatus
(
EntrustApproveStatusEnum
.
APPROVE
);
return
success
(
entrustService
.
page
(
getPage
(),
entrust
));
}
@ApiOperation
(
"委托修改审批历史分页列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_PAGE
,
value
=
"请求数据的页码"
,
required
=
true
,
paramType
=
"query"
,
dataTypeClass
=
Integer
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_ROWS
,
value
=
"每页条数"
,
required
=
true
,
paramType
=
"query"
,
dataTypeClass
=
Integer
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SIDX
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataTypeClass
=
String
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SORD
,
value
=
"排序方式"
,
paramType
=
"query"
,
dataTypeClass
=
String
.
class
),
})
@PostMapping
(
"/page_change_approve_his"
)
public
RestResult
<
Page
<
Entrust
>>
getPageChangeApproveHis
(
Entrust
entrust
)
{
return
success
(
entrustService
.
pageChangeApproveHis
(
getPage
(),
entrust
));
}
@ApiOperation
(
"委托样品待制备分页列表"
)
@ApiOperation
(
"委托样品待制备分页列表"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
...
@@ -333,9 +359,22 @@ public class EntrustController extends ServiceController {
...
@@ -333,9 +359,22 @@ public class EntrustController extends ServiceController {
}
}
@ApiOperation
(
"提交修改审批申请"
)
@ApiOperation
(
"提交修改审批申请"
)
@PostMapping
(
"/submit_update_apply"
)
@PostMapping
(
"/submit_change_apply"
)
public
RestResult
<
Boolean
>
submitUpdateApply
(
@RequestParam
(
"id"
)
Long
id
,
String
reason
)
{
public
RestResult
<
Boolean
>
submitChangeApply
(
@RequestParam
(
"id"
)
Long
id
,
@RequestParam
(
"approveId"
)
Long
approveId
,
return
success
(
entrustService
.
submitUpdateApply
(
id
,
reason
,
getAccount
()));
@RequestParam
(
"reason"
)
String
reason
)
{
return
success
(
entrustService
.
submitChangeApply
(
id
,
approveId
,
reason
,
getAccount
()));
}
@ApiOperation
(
"审批修改申请"
)
@PostMapping
(
"/approve_submit_apply"
)
public
RestResult
<
Boolean
>
approveSubmitApply
(
@RequestParam
(
"id"
)
Long
id
)
{
return
success
(
entrustService
.
approveSubmitApply
(
id
,
getAccount
()));
}
@ApiOperation
(
"驳回修改申请"
)
@PostMapping
(
"/reject_submit_apply"
)
public
RestResult
<
Boolean
>
rejectSubmitApply
(
@RequestParam
(
"id"
)
Long
id
,
@RequestParam
(
"reason"
)
String
reason
)
{
return
success
(
entrustService
.
rejectSubmitApply
(
id
,
reason
,
getAccount
()));
}
}
@ApiOperation
(
"复制委托信息"
)
@ApiOperation
(
"复制委托信息"
)
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/controller/EntrustSampleBackupController.java
View file @
56276086
...
@@ -81,7 +81,7 @@ public class EntrustSampleBackupController extends ServiceController {
...
@@ -81,7 +81,7 @@ public class EntrustSampleBackupController extends ServiceController {
public
RestResult
<
Page
<
EntrustSampleBackupVO
>>
getPageManage
(
EntrustSampleBackupVO
entrustSampleBackup
)
{
public
RestResult
<
Page
<
EntrustSampleBackupVO
>>
getPageManage
(
EntrustSampleBackupVO
entrustSampleBackup
)
{
entrustSampleBackup
.
setStatus
(
EntrustSampleBackupStatusEnum
.
MANAGE_ING
);
entrustSampleBackup
.
setStatus
(
EntrustSampleBackupStatusEnum
.
MANAGE_ING
);
entrustSampleBackup
.
setType
(
"YP"
);
entrustSampleBackup
.
setType
(
"YP"
);
return
success
(
entrustSampleBackupService
.
page
VO
(
getPage
(),
entrustSampleBackup
));
return
success
(
entrustSampleBackupService
.
page
Manage
(
getPage
(),
entrustSampleBackup
));
}
}
@ApiOperation
(
"样品管理历史分页列表"
)
@ApiOperation
(
"样品管理历史分页列表"
)
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/controller/EntrustSampleController.java
View file @
56276086
...
@@ -100,6 +100,58 @@ public class EntrustSampleController extends ServiceController {
...
@@ -100,6 +100,58 @@ public class EntrustSampleController extends ServiceController {
return
success
(
entrustSampleService
.
page
(
getPage
(),
entrustSample
));
return
success
(
entrustSampleService
.
page
(
getPage
(),
entrustSample
));
}
}
@ApiOperation
(
"报告审核样品分页列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_PAGE
,
value
=
"请求数据的页码"
,
required
=
true
,
paramType
=
"query"
,
dataTypeClass
=
Integer
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_ROWS
,
value
=
"每页条数"
,
required
=
true
,
paramType
=
"query"
,
dataTypeClass
=
Integer
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SIDX
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataTypeClass
=
String
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SORD
,
value
=
"排序方式"
,
paramType
=
"query"
,
dataTypeClass
=
String
.
class
),
})
@PostMapping
(
"/page_report_check"
)
public
RestResult
<
Page
<
EntrustSample
>>
getPageReportCheck
(
EntrustSample
entrustSample
)
{
entrustSample
.
setStatus
(
EntrustSampleStatusEnum
.
REPORT_CHECK
);
return
success
(
entrustSampleService
.
page
(
getPage
(),
entrustSample
));
}
@ApiOperation
(
"报告签发样品分页列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_PAGE
,
value
=
"请求数据的页码"
,
required
=
true
,
paramType
=
"query"
,
dataTypeClass
=
Integer
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_ROWS
,
value
=
"每页条数"
,
required
=
true
,
paramType
=
"query"
,
dataTypeClass
=
Integer
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SIDX
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataTypeClass
=
String
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SORD
,
value
=
"排序方式"
,
paramType
=
"query"
,
dataTypeClass
=
String
.
class
),
})
@PostMapping
(
"/page_report_issue"
)
public
RestResult
<
Page
<
EntrustSample
>>
getPageReportIssue
(
EntrustSample
entrustSample
)
{
entrustSample
.
setStatus
(
EntrustSampleStatusEnum
.
REPORT_ISSUE
);
return
success
(
entrustSampleService
.
page
(
getPage
(),
entrustSample
));
}
@ApiOperation
(
"报告批准样品分页列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_PAGE
,
value
=
"请求数据的页码"
,
required
=
true
,
paramType
=
"query"
,
dataTypeClass
=
Integer
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_ROWS
,
value
=
"每页条数"
,
required
=
true
,
paramType
=
"query"
,
dataTypeClass
=
Integer
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SIDX
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataTypeClass
=
String
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SORD
,
value
=
"排序方式"
,
paramType
=
"query"
,
dataTypeClass
=
String
.
class
),
})
@PostMapping
(
"/page_report_allow"
)
public
RestResult
<
Page
<
EntrustSample
>>
getPageReportAllow
(
EntrustSample
entrustSample
)
{
entrustSample
.
setStatus
(
EntrustSampleStatusEnum
.
REPORT_ALLOW
);
return
success
(
entrustSampleService
.
page
(
getPage
(),
entrustSample
));
}
@ApiOperation
(
"报告发放样品分页列表"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_PAGE
,
value
=
"请求数据的页码"
,
required
=
true
,
paramType
=
"query"
,
dataTypeClass
=
Integer
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_ROWS
,
value
=
"每页条数"
,
required
=
true
,
paramType
=
"query"
,
dataTypeClass
=
Integer
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SIDX
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataTypeClass
=
String
.
class
),
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_SORD
,
value
=
"排序方式"
,
paramType
=
"query"
,
dataTypeClass
=
String
.
class
),
})
@PostMapping
(
"/page_report_send"
)
public
RestResult
<
Page
<
EntrustSample
>>
getPageReportSend
(
EntrustSample
entrustSample
)
{
entrustSample
.
setStatus
(
EntrustSampleStatusEnum
.
REPORT_SEND
);
return
success
(
entrustSampleService
.
page
(
getPage
(),
entrustSample
));
}
@ApiOperation
(
"查询 id 信息"
)
@ApiOperation
(
"查询 id 信息"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/mapper/EntrustSampleBackupMapper.java
View file @
56276086
...
@@ -20,4 +20,6 @@ import java.util.List;
...
@@ -20,4 +20,6 @@ import java.util.List;
public
interface
EntrustSampleBackupMapper
extends
BatchMapper
<
EntrustSampleBackup
>
{
public
interface
EntrustSampleBackupMapper
extends
BatchMapper
<
EntrustSampleBackup
>
{
List
<
EntrustSampleBackupVO
>
selectVOList
(
RowBounds
rowBounds
,
@Param
(
"vo"
)
EntrustSampleBackupVO
entrustSampleBackup
);
List
<
EntrustSampleBackupVO
>
selectVOList
(
RowBounds
rowBounds
,
@Param
(
"vo"
)
EntrustSampleBackupVO
entrustSampleBackup
);
List
<
EntrustSampleBackupVO
>
selectManageList
(
Page
<
EntrustSampleBackupVO
>
page
,
@Param
(
"vo"
)
EntrustSampleBackupVO
entrustSampleBackup
);
}
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/IEntrustSampleBackupService.java
View file @
56276086
...
@@ -25,4 +25,6 @@ public interface IEntrustSampleBackupService extends IBaseService<EntrustSampleB
...
@@ -25,4 +25,6 @@ public interface IEntrustSampleBackupService extends IBaseService<EntrustSampleB
Page
<
EntrustSampleBackupVO
>
pageVO
(
Page
<
EntrustSampleBackupVO
>
page
,
EntrustSampleBackupVO
entrustSampleBackup
);
Page
<
EntrustSampleBackupVO
>
pageVO
(
Page
<
EntrustSampleBackupVO
>
page
,
EntrustSampleBackupVO
entrustSampleBackup
);
boolean
submitToHandle
(
Long
[]
ids
,
Account
account
);
boolean
submitToHandle
(
Long
[]
ids
,
Account
account
);
Page
<
EntrustSampleBackupVO
>
pageManage
(
Page
<
EntrustSampleBackupVO
>
page
,
EntrustSampleBackupVO
entrustSampleBackup
);
}
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/IEntrustService.java
View file @
56276086
...
@@ -83,5 +83,11 @@ public interface IEntrustService extends IBaseService<Entrust> {
...
@@ -83,5 +83,11 @@ public interface IEntrustService extends IBaseService<Entrust> {
boolean
backFromReceive
(
Long
[]
ids
,
Account
account
,
String
reason
);
boolean
backFromReceive
(
Long
[]
ids
,
Account
account
,
String
reason
);
boolean
submitUpdateApply
(
Long
id
,
String
reason
,
Account
account
);
boolean
submitChangeApply
(
Long
id
,
Long
approveId
,
String
reason
,
Account
account
);
Page
<
Entrust
>
pageChangeApproveHis
(
Page
<
Entrust
>
page
,
Entrust
entrust
);
boolean
approveSubmitApply
(
Long
id
,
Account
account
);
boolean
rejectSubmitApply
(
Long
id
,
String
reason
,
Account
account
);
}
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleBackupServiceImpl.java
View file @
56276086
...
@@ -64,4 +64,9 @@ public class EntrustSampleBackupServiceImpl extends BaseServiceImpl<EntrustSampl
...
@@ -64,4 +64,9 @@ public class EntrustSampleBackupServiceImpl extends BaseServiceImpl<EntrustSampl
return
super
.
update
(
backup
,
Condition
.
create
().
in
(
"id"
,
ids
));
return
super
.
update
(
backup
,
Condition
.
create
().
in
(
"id"
,
ids
));
}
}
@Override
public
Page
<
EntrustSampleBackupVO
>
pageManage
(
Page
<
EntrustSampleBackupVO
>
page
,
EntrustSampleBackupVO
entrustSampleBackup
)
{
return
page
.
setRecords
(
baseMapper
.
selectManageList
(
page
,
entrustSampleBackup
));
}
}
}
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustSampleServiceImpl.java
View file @
56276086
...
@@ -100,7 +100,6 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe
...
@@ -100,7 +100,6 @@ public class EntrustSampleServiceImpl extends BaseServiceImpl<EntrustSampleMappe
@Override
@Override
public
Page
<
EntrustSample
>
page
(
Page
<
EntrustSample
>
page
,
EntrustSample
entrustSample
)
{
public
Page
<
EntrustSample
>
page
(
Page
<
EntrustSample
>
page
,
EntrustSample
entrustSample
)
{
Wrapper
wrapper
=
new
EntityWrapper
<>(
entrustSample
);
Wrapper
wrapper
=
new
EntityWrapper
<>(
entrustSample
);
return
this
.
page
(
page
,
wrapper
);
return
this
.
page
(
page
,
wrapper
);
}
}
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/EntrustServiceImpl.java
View file @
56276086
This diff is collapsed.
Click to expand it.
src/main/resources/mapper/hmhj/EntrustSampleBackupMapper.xml
View file @
56276086
...
@@ -47,4 +47,51 @@
...
@@ -47,4 +47,51 @@
</where>
</where>
order by b.ctime desc
order by b.ctime desc
</select>
</select>
<select
id=
"selectManageList"
resultType=
"com.patzn.cloud.service.hmhj.vo.EntrustSampleBackupVO"
>
SELECT
b.ID,
b.receive_time,
b.storage_location,
b.storage_method,
b.storage_period,
b.sample_id,
b.handler,
b.handle_time,
s.NAME AS "sampleName",
s.code AS "sampleCode" ,
e.client ,
e.code AS "entrustCode",
(case when e.sample_handle_advise = '检测完毕退还' and s.status
>
20 then 1 else 0 end) "weights"
FROM
entrust_sample_backup b
JOIN entrust_sample s ON b.sample_id = s.ID
JOIN entrust e ON s.entrust_id = e.ID
<where>
AND b.deleted = 0 AND s.deleted = 0 AND e.deleted = 0
<if
test=
"null!=vo.sampleCode"
>
AND s.code LIKE CONCAT('%',#{vo.sampleCode},'%')
</if>
<if
test=
"null!=vo.status"
>
AND b.status =#{vo.status}
</if>
<if
test=
"null!=vo.notStatus"
>
AND b.status !=#{vo.notStatus}
</if>
<if
test=
"null!=vo.sampleName"
>
AND s.name LIKE CONCAT('%',#{vo.sampleName},'%')
</if>
<if
test=
"null!=vo.client"
>
AND e.client LIKE CONCAT('%',#{vo.client},'%')
</if>
<if
test=
"null!=vo.entrustCode"
>
AND e.code LIKE CONCAT('%',#{vo.entrustCode},'%')
</if>
</where>
order by (case when e.sample_handle_advise = '检测完毕退还' and s.status
>
20 then 1 else 0 end) desc, b.ctime desc
</select>
</mapper>
</mapper>
src/test/java/resources/db_sql/hmhj/v145/20210708添加记录表和字段.sql
View file @
56276086
CREAT
E
TABLE
"public"
.
"entrust_sample_record"
(
CREAT
E
TABLE
"public"
.
"entrust_sample_record"
(
...
@@ -42,7 +42,6 @@ ALTER TABLE "public"."entrust"
...
@@ -42,7 +42,6 @@ ALTER TABLE "public"."entrust"
ADD
COLUMN
"live_witness"
int2
,
ADD
COLUMN
"live_witness"
int2
,
ADD
COLUMN
"sample_size"
varchar
(
64
)
COLLATE
"pg_catalog"
.
"default"
,
ADD
COLUMN
"sample_size"
varchar
(
64
)
COLLATE
"pg_catalog"
.
"default"
,
ADD
COLUMN
"priority"
varchar
(
32
)
COLLATE
"pg_catalog"
.
"default"
,
ADD
COLUMN
"priority"
varchar
(
32
)
COLLATE
"pg_catalog"
.
"default"
,
ADD
COLUMN
"test_fee"
numeric
(
10
,
2
)
default
0
.
00
,
ADD
COLUMN
"test_time_s"
timestamp
(
6
),
ADD
COLUMN
"test_time_s"
timestamp
(
6
),
ADD
COLUMN
"test_time_e"
timestamp
(
6
);
ADD
COLUMN
"test_time_e"
timestamp
(
6
);
...
@@ -50,7 +49,6 @@ COMMENT ON COLUMN "public"."entrust"."expect_send_time" IS '客户期望报告
...
@@ -50,7 +49,6 @@ COMMENT ON COLUMN "public"."entrust"."expect_send_time" IS '客户期望报告
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"live_witness"
IS
'现场见证【0:否,1:是】'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"live_witness"
IS
'现场见证【0:否,1:是】'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"sample_size"
IS
'样品尺寸'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"sample_size"
IS
'样品尺寸'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"priority"
IS
'优先级'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"priority"
IS
'优先级'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"test_fee"
IS
'检测费用'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"test_time_s"
IS
'检测开始日期'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"test_time_s"
IS
'检测开始日期'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"test_time_e"
IS
'检测结束日期'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"test_time_e"
IS
'检测结束日期'
;
-- 新增样品字段 --
-- 新增样品字段 --
...
@@ -64,3 +62,8 @@ ALTER TABLE "public"."entrust_sample_item"
...
@@ -64,3 +62,8 @@ ALTER TABLE "public"."entrust_sample_item"
ADD
COLUMN
"price"
numeric
(
10
,
2
)
default
0
.
00
;
ADD
COLUMN
"price"
numeric
(
10
,
2
)
default
0
.
00
;
COMMENT
ON
COLUMN
"public"
.
"entrust_sample_item"
.
"price"
IS
'单价'
;
COMMENT
ON
COLUMN
"public"
.
"entrust_sample_item"
.
"price"
IS
'单价'
;
ALTER
TABLE
"public"
.
"material_item"
ADD
COLUMN
"price"
numeric
(
10
,
2
)
default
0
.
00
;
COMMENT
ON
COLUMN
"public"
.
"material_item"
.
"price"
IS
'单价'
;
src/test/java/resources/db_sql/hmhj/v146/20210709添加字段.sql
0 → 100644
View file @
56276086
-- 新增委托字段 --
-- 新增委托字段 --
ALTER
TABLE
"public"
.
"entrust"
ADD
COLUMN
"proposer_id"
int8
,
ADD
COLUMN
"approver_id"
int8
,
ADD
COLUMN
"proposer"
varchar
(
64
)
COLLATE
"pg_catalog"
.
"default"
,
ADD
COLUMN
"approver"
varchar
(
64
)
COLLATE
"pg_catalog"
.
"default"
,
-- ADD COLUMN "total_fee" numeric(10,2),
ADD
COLUMN
"approve_time"
timestamp
(
6
);
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"proposer_id"
IS
'修改申请人ID'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"approver_id"
IS
'修改审批人ID'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"proposer"
IS
'修改申请人'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"approver"
IS
'修改审批人'
;
COMMENT
ON
COLUMN
"public"
.
"entrust"
.
"approve_time"
IS
'审批日期'
;
-- COMMENT ON COLUMN "public"."entrust"."total_fee" IS '检测费用';
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