Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
b147a245
Commit
b147a245
authored
Oct 19, 2022
by
wanglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监检任务表代码优化
parent
e594f04e
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
72 additions
and
309 deletions
+72
-309
TaskDto.java
...ava/com/yeejoin/amos/boot/module/ugp/api/dto/TaskDto.java
+1
-21
WeldCraftDto.java
...om/yeejoin/amos/boot/module/ugp/api/dto/WeldCraftDto.java
+41
-0
Task.java
...ava/com/yeejoin/amos/boot/module/ugp/api/entity/Task.java
+1
-12
IntelligentInspectionMapper.java
...ot/module/ugp/api/mapper/IntelligentInspectionMapper.java
+0
-20
TaskMapper.java
...m/yeejoin/amos/boot/module/ugp/api/mapper/TaskMapper.java
+2
-2
TaskService.java
...yeejoin/amos/boot/module/ugp/api/service/TaskService.java
+1
-1
IntelligentInspectionMapper.xml
...src/main/resources/mapper/IntelligentInspectionMapper.xml
+0
-57
IntelligentInspectionController.java
...e/ugp/biz/controller/IntelligentInspectionController.java
+0
-45
TaskController.java
...n/amos/boot/module/ugp/biz/controller/TaskController.java
+21
-22
IntelligentInspectionServiceImpl.java
...gp/biz/service/impl/IntelligentInspectionServiceImpl.java
+0
-124
TaskServiceImpl.java
...mos/boot/module/ugp/biz/service/impl/TaskServiceImpl.java
+5
-5
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/dto/T
zUgpT
askDto.java
→
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/dto/TaskDto.java
View file @
b147a245
...
@@ -12,7 +12,7 @@ import java.util.Date;
...
@@ -12,7 +12,7 @@ import java.util.Date;
* @date 2022-10-19
* @date 2022-10-19
*/
*/
@Data
@Data
public
class
T
zUgpT
askDto
implements
Serializable
{
public
class
TaskDto
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -37,21 +37,6 @@ public class TzUgpTaskDto implements Serializable {
...
@@ -37,21 +37,6 @@ public class TzUgpTaskDto implements Serializable {
private
String
status
;
private
String
status
;
@ApiModelProperty
(
value
=
"更新日期"
)
@ApiModelProperty
(
value
=
"更新日期"
)
/**
/**
* 更新日期
*/
private
Date
recDate
;
@ApiModelProperty
(
value
=
"更新人员"
)
/**
* 更新人员
*/
private
Integer
recUserId
;
@ApiModelProperty
(
value
=
"更新人员名称"
)
/**
* 更新人员名称
*/
private
String
recUserName
;
@ApiModelProperty
(
value
=
"任务开始时间"
)
/**
* 任务开始时间
* 任务开始时间
*/
*/
private
Date
startTime
;
private
Date
startTime
;
...
@@ -60,11 +45,6 @@ public class TzUgpTaskDto implements Serializable {
...
@@ -60,11 +45,6 @@ public class TzUgpTaskDto implements Serializable {
* 任务结束时间
* 任务结束时间
*/
*/
private
Date
overTime
;
private
Date
overTime
;
@ApiModelProperty
(
value
=
"是否删除(1删除,0未删除)"
)
/**
* 是否删除(1删除,0未删除)
*/
private
String
isDelete
;
@ApiModelProperty
(
value
=
"项目id"
)
@ApiModelProperty
(
value
=
"项目id"
)
/**
/**
* 项目id
* 项目id
...
...
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/dto/WeldCraftDto.java
0 → 100644
View file @
b147a245
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.util.Date
;
public
class
WeldCraftDto
{
@ApiModelProperty
(
value
=
"项目id"
)
private
Long
projectId
;
@ApiModelProperty
(
value
=
"项目名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"项目编号"
)
private
String
projectCode
;
@ApiModelProperty
(
value
=
"检验检测单位"
)
private
String
companyName
;
@ApiModelProperty
(
value
=
"检验负责人"
)
private
String
usrName
;
@ApiModelProperty
(
value
=
"检验员"
)
private
String
inspector
;
@ApiModelProperty
(
value
=
"检验状态"
)
private
String
status
;
@ApiModelProperty
(
value
=
"检验方式"
)
private
String
type
;
@ApiModelProperty
(
value
=
"交检日期"
)
private
Date
submitTime
;
@ApiModelProperty
(
value
=
"检验时间"
)
private
Date
verifyTime
;
@ApiModelProperty
(
value
=
"app上传的数据"
)
private
String
targetInfo
;
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/entity/T
zUgpT
ask.java
→
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/entity/Task.java
View file @
b147a245
...
@@ -18,7 +18,7 @@ import java.util.Date;
...
@@ -18,7 +18,7 @@ import java.util.Date;
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"TzUgpTask对象"
,
description
=
"监检任务表"
)
@ApiModel
(
value
=
"TzUgpTask对象"
,
description
=
"监检任务表"
)
public
class
T
zUgpT
ask
extends
BaseEntity
{
public
class
Task
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -35,23 +35,12 @@ public class TzUgpTask extends BaseEntity {
...
@@ -35,23 +35,12 @@ public class TzUgpTask extends BaseEntity {
@ApiModelProperty
(
value
=
"任务状态(0:未开始 1:进行中 2:已结束)"
)
@ApiModelProperty
(
value
=
"任务状态(0:未开始 1:进行中 2:已结束)"
)
private
String
status
;
private
String
status
;
@ApiModelProperty
(
value
=
"更新日期"
)
private
Date
recDate
;
@ApiModelProperty
(
value
=
"更新人员"
)
private
Integer
recUserId
;
@ApiModelProperty
(
value
=
"更新人员名称"
)
private
String
recUserName
;
@ApiModelProperty
(
value
=
"任务开始时间"
)
@ApiModelProperty
(
value
=
"任务开始时间"
)
private
Date
startTime
;
private
Date
startTime
;
@ApiModelProperty
(
value
=
"任务结束时间"
)
@ApiModelProperty
(
value
=
"任务结束时间"
)
private
Date
overTime
;
private
Date
overTime
;
@ApiModelProperty
(
value
=
"是否删除(1删除,0未删除)"
)
private
String
isDelete
;
@ApiModelProperty
(
value
=
"项目id"
)
@ApiModelProperty
(
value
=
"项目id"
)
private
Long
projectId
;
private
Long
projectId
;
...
...
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/mapper/IntelligentInspectionMapper.java
deleted
100644 → 0
View file @
e594f04e
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.StageEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Verify
;
import
javafx.stage.Stage
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
public
interface
IntelligentInspectionMapper
extends
BaseMapper
<
Verify
>
{
/**
* 公共接口
* @param
* @return
*/
List
<
Verify
>
commonality
();
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/mapper/T
zUgpT
askMapper.java
→
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/mapper/TaskMapper.java
View file @
b147a245
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
mapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
api
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.T
zUgpT
ask
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Task
;
/**
/**
* 监检任务表 Mapper 接口
* 监检任务表 Mapper 接口
...
@@ -9,6 +9,6 @@ import com.yeejoin.amos.boot.module.ugp.api.entity.TzUgpTask;
...
@@ -9,6 +9,6 @@ import com.yeejoin.amos.boot.module.ugp.api.entity.TzUgpTask;
* @author duanwei
* @author duanwei
* @date 2022-10-19
* @date 2022-10-19
*/
*/
public
interface
T
zUgpTaskMapper
extends
BaseMapper
<
TzUgp
Task
>
{
public
interface
T
askMapper
extends
BaseMapper
<
Task
>
{
}
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/service/
ITzUgp
TaskService.java
→
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/java/com/yeejoin/amos/boot/module/ugp/api/service/TaskService.java
View file @
b147a245
...
@@ -6,6 +6,6 @@ package com.yeejoin.amos.boot.module.ugp.api.service;
...
@@ -6,6 +6,6 @@ package com.yeejoin.amos.boot.module.ugp.api.service;
* @author duanwei
* @author duanwei
* @date 2022-10-19
* @date 2022-10-19
*/
*/
public
interface
ITzUgpTaskService
{
public
interface
TaskService
{
}
}
amos-boot-system-ugp/amos-boot-module-ugp-api/src/main/resources/mapper/IntelligentInspectionMapper.xml
deleted
100644 → 0
View file @
e594f04e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.ugp.api.mapper.IntelligentInspectionMapper"
>
<resultMap
id=
"resultMap"
type=
"com.yeejoin.amos.boot.module.ugp.api.entity.Verify"
>
<result
property=
"sequenceNbr"
column=
"sequence_nbr"
jdbcType=
"INTEGER"
/>
<result
property=
"projectId"
column=
"project_id"
jdbcType=
"INTEGER"
/>
<result
property=
"code"
column=
"code"
jdbcType=
"VARCHAR"
/>
<result
property=
"stage"
column=
"stage"
jdbcType=
"VARCHAR"
/>
<result
property=
"targetInfo"
column=
"target_info"
jdbcType=
"VARCHAR"
/>
<result
property=
"status"
column=
"status"
jdbcType=
"VARCHAR"
/>
<result
property=
"type"
column=
"type"
jdbcType=
"VARCHAR"
/>
<result
property=
"submitTime"
column=
"submit_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"verifyTime"
column=
"verify_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"verifyUnitId"
column=
"verify_unit_id"
jdbcType=
"INTEGER"
/>
<result
property=
"chargerPersonId"
column=
"charger_person_id"
jdbcType=
"INTEGER"
/>
<result
property=
"inspectorId"
column=
"inspector_id"
jdbcType=
"INTEGER"
/>
<result
property=
"recDate"
column=
"rec_date"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"recUserId"
column=
"rec_user_id"
jdbcType=
"INTEGER"
/>
<result
property=
"recUserName"
column=
"rec_user_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"isDelete"
column=
"is_delete"
jdbcType=
"VARCHAR"
/>
<association
property=
"project"
javaType=
"com.yeejoin.amos.boot.module.ugp.api.entity.Project"
>
<result
property=
"name"
column=
"name"
></result>
<result
property=
"code"
column=
"code"
></result>
</association>
</resultMap>
<select
id=
"commonality"
resultMap=
"resultMap"
>
select
vf.project_id,
vf.stage,
vf.status,
vf.target_info,
vf.type,
vf.submit_time,
vf.verify_time,
vf.verify_unit_id,
vf.charger_person_id,
vf.inspector_id,
pt.name,
pt.code
from
tz_ugp_verify vf,
tz_ugp_project pt
where
vf.project_id =pt.sequence_nbr
and
pt.is_delete='0'
</select>
</mapper>
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/IntelligentInspectionController.java
deleted
100644 → 0
View file @
e594f04e
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
controller
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.BeforeDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.IntelligentInspectionDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.PercentOfPassDto
;
import
com.yeejoin.amos.boot.module.ugp.api.service.IIntelligentInspectionService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
/**
* @Author cpp
* @Description 【智能监检与评价管理】【焊前准备校验】管材质量校验
* @Date 2022/10/13
*/
@RestController
@Api
(
tags
=
"焊接管材检验信息列表Api"
)
@RequestMapping
(
value
=
"/intelligent-inspection"
)
public
class
IntelligentInspectionController
{
@Autowired
IIntelligentInspectionService
services
;
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/selectInspection"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"焊接管材检验信息列表"
,
notes
=
"焊接管材检验信息列表"
)
public
ResponseModel
<
Page
<
BeforeDto
>>
selectInspection
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
BeforeDto
dto
)
{
Page
<
BeforeDto
>
page
=
new
Page
<>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
services
.
selectInspection
(
page
,
dto
));
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/T
zUgpT
askController.java
→
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/TaskController.java
View file @
b147a245
...
@@ -4,14 +4,13 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
...
@@ -4,14 +4,13 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.NameUtils
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.T
zUgpT
ask
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Task
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.T
zUgpT
askServiceImpl
;
import
com.yeejoin.amos.boot.module.ugp.biz.service.impl.TaskServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
...
@@ -26,11 +25,11 @@ import java.util.Arrays;
...
@@ -26,11 +25,11 @@ import java.util.Arrays;
*/
*/
@RestController
@RestController
@Api
(
tags
=
"监检任务表Api"
)
@Api
(
tags
=
"监检任务表Api"
)
@RequestMapping
(
value
=
"/tz-ugp-task"
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
@RequestMapping
(
value
=
"/tz-ugp-task"
)
public
class
T
zUgpT
askController
{
public
class
TaskController
{
@Autowired
@Autowired
T
zUgpT
askServiceImpl
iTzUgpTaskService
;
TaskServiceImpl
iTzUgpTaskService
;
/**
/**
...
@@ -39,8 +38,8 @@ public class TzUgpTaskController {
...
@@ -39,8 +38,8 @@ public class TzUgpTaskController {
*/
*/
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增监检任务表"
,
notes
=
"新增监检任务表"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增监检任务表"
,
notes
=
"新增监检任务表"
)
public
boolean
saveTzUgpTask
(
HttpServletRequest
request
,
@RequestBody
T
zUgpTask
tzUgpT
ask
){
public
boolean
saveTzUgpTask
(
HttpServletRequest
request
,
@RequestBody
T
ask
t
ask
){
return
iTzUgpTaskService
.
save
(
t
zUgpT
ask
);
return
iTzUgpTaskService
.
save
(
task
);
}
}
/**
/**
...
@@ -63,8 +62,8 @@ public class TzUgpTaskController {
...
@@ -63,8 +62,8 @@ public class TzUgpTaskController {
*/
*/
@RequestMapping
(
value
=
"/updateById"
,
method
=
RequestMethod
.
PUT
)
@RequestMapping
(
value
=
"/updateById"
,
method
=
RequestMethod
.
PUT
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"修改监检任务表"
,
notes
=
"修改监检任务表"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"修改监检任务表"
,
notes
=
"修改监检任务表"
)
public
boolean
updateByIdTzUgpTask
(
HttpServletRequest
request
,
@RequestBody
T
zUgpTask
tzUgpT
ask
){
public
boolean
updateByIdTzUgpTask
(
HttpServletRequest
request
,
@RequestBody
T
ask
t
ask
){
return
iTzUgpTaskService
.
updateById
(
t
zUgpT
ask
);
return
iTzUgpTaskService
.
updateById
(
task
);
}
}
...
@@ -76,7 +75,7 @@ public class TzUgpTaskController {
...
@@ -76,7 +75,7 @@ public class TzUgpTaskController {
*/
*/
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据id查询"
,
notes
=
"根据id查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据id查询"
,
notes
=
"根据id查询"
)
public
T
zUgpT
ask
selectById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
public
Task
selectById
(
HttpServletRequest
request
,
@PathVariable
Long
id
){
return
iTzUgpTaskService
.
getById
(
id
);
return
iTzUgpTaskService
.
getById
(
id
);
}
}
...
@@ -88,37 +87,37 @@ public class TzUgpTaskController {
...
@@ -88,37 +87,37 @@ public class TzUgpTaskController {
*/
*/
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
notes
=
"列表分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表分页查询"
,
notes
=
"列表分页查询"
)
public
IPage
<
T
zUgpTask
>
listPage
(
String
pageNum
,
String
pageSize
,
public
IPage
<
T
ask
>
listPage
(
String
pageNum
,
String
pageSize
,
TzUgpTask
tzUgpT
ask
){
Task
t
ask
){
Page
<
T
zUgpT
ask
>
pageBean
;
Page
<
Task
>
pageBean
;
QueryWrapper
<
T
zUgpT
ask
>
tzUgpTaskQueryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
Task
>
tzUgpTaskQueryWrapper
=
new
QueryWrapper
<>();
Class
<?
extends
T
zUgpTask
>
aClass
=
tzUgpT
ask
.
getClass
();
Class
<?
extends
T
ask
>
aClass
=
t
ask
.
getClass
();
Arrays
.
stream
(
aClass
.
getDeclaredFields
()).
forEach
(
field
->
{
Arrays
.
stream
(
aClass
.
getDeclaredFields
()).
forEach
(
field
->
{
try
{
try
{
field
.
setAccessible
(
true
);
field
.
setAccessible
(
true
);
Object
o
=
field
.
get
(
t
zUgpT
ask
);
Object
o
=
field
.
get
(
task
);
if
(
o
!=
null
)
{
if
(
o
!=
null
)
{
Class
<?>
type
=
field
.
getType
();
Class
<?>
type
=
field
.
getType
();
String
name
=
NameUtils
.
camel2Underline
(
field
.
getName
());
String
name
=
NameUtils
.
camel2Underline
(
field
.
getName
());
if
(
type
.
equals
(
Integer
.
class
))
{
if
(
type
.
equals
(
Integer
.
class
))
{
Integer
fileValue
=
(
Integer
)
field
.
get
(
t
zUgpT
ask
);
Integer
fileValue
=
(
Integer
)
field
.
get
(
task
);
tzUgpTaskQueryWrapper
.
eq
(
name
,
fileValue
);
tzUgpTaskQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
if
(
type
.
equals
(
Long
.
class
))
{
}
else
if
(
type
.
equals
(
Long
.
class
))
{
Long
fileValue
=
(
Long
)
field
.
get
(
t
zUgpT
ask
);
Long
fileValue
=
(
Long
)
field
.
get
(
task
);
tzUgpTaskQueryWrapper
.
eq
(
name
,
fileValue
);
tzUgpTaskQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
if
(
type
.
equals
(
String
.
class
))
{
}
else
if
(
type
.
equals
(
String
.
class
))
{
String
fileValue
=
(
String
)
field
.
get
(
t
zUgpT
ask
);
String
fileValue
=
(
String
)
field
.
get
(
task
);
tzUgpTaskQueryWrapper
.
eq
(
name
,
fileValue
);
tzUgpTaskQueryWrapper
.
eq
(
name
,
fileValue
);
}
else
{
}
else
{
String
fileValue
=
(
String
)
field
.
get
(
t
zUgpT
ask
);
String
fileValue
=
(
String
)
field
.
get
(
task
);
tzUgpTaskQueryWrapper
.
eq
(
name
,
fileValue
);
tzUgpTaskQueryWrapper
.
eq
(
name
,
fileValue
);
}
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
}
}
});
});
IPage
<
T
zUgpT
ask
>
page
;
IPage
<
Task
>
page
;
if
(
StringUtils
.
isBlank
(
pageNum
)
||
StringUtils
.
isBlank
(
pageSize
))
{
if
(
StringUtils
.
isBlank
(
pageNum
)
||
StringUtils
.
isBlank
(
pageSize
))
{
pageBean
=
new
Page
<>(
0
,
Long
.
MAX_VALUE
);
pageBean
=
new
Page
<>(
0
,
Long
.
MAX_VALUE
);
}
else
{
}
else
{
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/IntelligentInspectionServiceImpl.java
deleted
100644 → 0
View file @
e594f04e
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.additional.query.impl.QueryChainWrapper
;
import
com.yeejoin.amos.boot.module.ugp.api.Enum.StageEnum
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.BeforeDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.IntelligentInspectionDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.WeldDto
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Project
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Verify
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.IntelligentInspectionMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.service.IIntelligentInspectionService
;
import
org.apache.poi.ss.formula.functions.T
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
/**
* @Author cpp
* @Description
* @Date 2022/10/13
*/
@Service
public
class
IntelligentInspectionServiceImpl
extends
BaseService
<
IntelligentInspectionDto
,
Verify
,
IntelligentInspectionMapper
>
implements
IIntelligentInspectionService
{
@Autowired
private
IntelligentInspectionMapper
mapper
;
/**
* 校检阶段公共方法
* name: 那个阶段
*/
public
JSONArray
commonality
(
String
name
){
List
<
Verify
>
commonality
=
mapper
.
commonality
();
if
(!
StringUtils
.
isEmpty
(
name
))
{
if
(
name
.
equals
(
StageEnum
.
焊前
.
getName
()))
{
//进入焊前
List
<
BeforeDto
>
beforeDtoList
=
new
ArrayList
<>();
//获取项目信息
for
(
Verify
verify
:
commonality
)
{
BeforeDto
beforeDto
=
new
BeforeDto
(
);
beforeDto
.
setProjectId
(
verify
.
getProjectId
());
//项目id
beforeDto
.
setName
(
verify
.
getProject
().
getName
());
//项目名称
beforeDto
.
setProjectCode
(
verify
.
getProject
().
getCode
());
//项目编号
beforeDto
.
setStatus
(
verify
.
getStatus
());
//检验状态
beforeDto
.
setType
(
verify
.
getType
());
//检验方式
beforeDto
.
setSubmitTime
(
verify
.
getVerifyTime
());
//交检日期
beforeDto
.
setVerifyTime
(
verify
.
getVerifyTime
());
//检验时间
String
targetInfo
=
verify
.
getTargetInfo
(
);
//app上传数据
//塞数据(焊口编码,管材厂家,管材批号,质量许可,焊工编号,管材验证定位信息,检验检测单位,检验负责人,监检员)
beforeDtoList
.
add
(
beforeDto
);
}
JSONArray
jsonArray
=
JSONArray
.
parseArray
(
JSON
.
toJSONString
(
beforeDtoList
));
return
jsonArray
;
}
else
if
(
name
.
equals
(
StageEnum
.
工艺
.
getName
()))
{
//进入工艺
return
null
;
}
else
if
(
name
.
equals
(
StageEnum
.
耐压
.
getName
())
)
{
//进入耐压
return
null
;
}
else
if
(
name
.
equals
(
StageEnum
.
敷设
.
getName
()))
{
//进入敷压
return
null
;
}
else
if
(
name
.
equals
(
StageEnum
.
定位
.
getName
())
){
//进入定位
return
null
;
}
}
return
null
;
}
/**
* 查询焊接管材检验信息列表
* @param page
* @param dto
* @return
*/
@Override
public
Page
<
BeforeDto
>
selectInspection
(
Page
<
BeforeDto
>
page
,
BeforeDto
dto
)
{
JSONArray
commonality
=
this
.
commonality
(
"BEFORE-WELDING"
);
List
<
BeforeDto
>
beforeDtoList
=
JSONObject
.
parseArray
(
commonality
.
toJSONString
(
),
BeforeDto
.
class
);
page
.
setRecords
(
beforeDtoList
);
page
.
setTotal
(
beforeDtoList
.
size
());
return
page
;
}
}
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/T
zUgpT
askServiceImpl.java
→
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/TaskServiceImpl.java
View file @
b147a245
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.T
zUgpT
askDto
;
import
com.yeejoin.amos.boot.module.ugp.api.dto.TaskDto
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.T
zUgpT
ask
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Task
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.T
zUgpT
askMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.TaskMapper
;
import
com.yeejoin.amos.boot.module.ugp.api.service.
ITzUgp
TaskService
;
import
com.yeejoin.amos.boot.module.ugp.api.service.TaskService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
...
@@ -14,6 +14,6 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
...
@@ -14,6 +14,6 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
* @date 2022-10-19
* @date 2022-10-19
*/
*/
@Service
@Service
public
class
T
zUgpTaskServiceImpl
extends
BaseService
<
TzUgpTaskDto
,
TzUgpTask
,
TzUgpTaskMapper
>
implements
ITzUgp
TaskService
{
public
class
T
askServiceImpl
extends
BaseService
<
TaskDto
,
Task
,
TaskMapper
>
implements
TaskService
{
}
}
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