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
9e71592c
Commit
9e71592c
authored
Nov 12, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):三环气瓶
parent
72f2c4dc
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
10 deletions
+40
-10
ShCarDto.java
...ava/com/yeejoin/amos/boot/module/jg/api/dto/ShCarDto.java
+6
-4
ShCarEquDto.java
.../com/yeejoin/amos/boot/module/jg/api/dto/ShCarEquDto.java
+6
-4
ShCar.java
...ava/com/yeejoin/amos/boot/module/jg/api/entity/ShCar.java
+6
-0
ShCarEqu.java
.../com/yeejoin/amos/boot/module/jg/api/entity/ShCarEqu.java
+6
-0
ShCarController.java
...n/amos/boot/module/jg/biz/controller/ShCarController.java
+15
-1
ShCarEquController.java
...mos/boot/module/jg/biz/controller/ShCarEquController.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/ShCarDto.java
View file @
9e71592c
...
@@ -5,8 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
...
@@ -5,8 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.
Data
;
import
lombok.
*
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
...
@@ -16,9 +16,11 @@ import java.util.Date;
...
@@ -16,9 +16,11 @@ import java.util.Date;
* @date 2024-11-08
* @date 2024-11-08
*/
*/
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"ShCarDto"
,
description
=
"三环系统-车辆信息表"
)
@ApiModel
(
value
=
"ShCarDto"
,
description
=
"三环系统-车辆信息表"
)
public
class
ShCarDto
extends
BaseDto
{
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
ShCarDto
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/ShCarEquDto.java
View file @
9e71592c
...
@@ -5,8 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
...
@@ -5,8 +5,8 @@ import com.baomidou.mybatisplus.annotation.TableId;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.
Data
;
import
lombok.
*
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
import
java.util.Date
;
/**
/**
...
@@ -16,9 +16,11 @@ import java.util.Date;
...
@@ -16,9 +16,11 @@ import java.util.Date;
* @date 2024-11-08
* @date 2024-11-08
*/
*/
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"ShCarEquDto"
,
description
=
""
)
@ApiModel
(
value
=
"ShCarEquDto"
,
description
=
""
)
public
class
ShCarEquDto
extends
BaseDto
{
@Builder
@AllArgsConstructor
@NoArgsConstructor
public
class
ShCarEquDto
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/ShCar.java
View file @
9e71592c
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
entity
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.*
;
import
lombok.*
;
import
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
;
import
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
;
...
@@ -28,6 +30,10 @@ public class ShCar {
...
@@ -28,6 +30,10 @@ public class ShCar {
* seq
* seq
*/
*/
@TableField
(
value
=
"\"SEQUENCE_NBR\""
)
@TableField
(
value
=
"\"SEQUENCE_NBR\""
)
@TableId
(
value
=
"\"SEQUENCE_NBR\""
,
type
=
IdType
.
ID_WORKER
)
private
String
sequenceNbr
;
private
String
sequenceNbr
;
/**
/**
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/ShCarEqu.java
View file @
9e71592c
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
entity
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.*
;
import
lombok.*
;
import
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
;
import
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
;
...
@@ -26,6 +28,10 @@ public class ShCarEqu {
...
@@ -26,6 +28,10 @@ public class ShCarEqu {
* primary key
* primary key
*/
*/
@TableField
(
value
=
"\"SEQUENCE_NBR\""
)
@TableField
(
value
=
"\"SEQUENCE_NBR\""
)
@TableId
(
value
=
"\"SEQUENCE_NBR\""
,
type
=
IdType
.
ID_WORKER
)
private
String
sequenceNbr
;
private
String
sequenceNbr
;
/**
/**
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/ShCarController.java
View file @
9e71592c
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
controller
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.jg.api.entity.ShCar
;
import
com.yeejoin.amos.boot.module.jg.api.entity.ShCar
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -55,7 +56,7 @@ public class ShCarController extends BaseController {
...
@@ -55,7 +56,7 @@ public class ShCarController extends BaseController {
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
public
ResponseModel
<
ShCar
>
updateBySequenceNbrShCar
(
@RequestBody
ShCar
entity
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
ResponseModel
<
ShCar
>
updateBySequenceNbrShCar
(
@RequestBody
ShCar
entity
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
entity
.
setSequenceNbr
(
sequenceNbr
);
//
entity.setSequenceNbr(sequenceNbr);
return
ResponseHelper
.
buildResponse
(
shCarServiceImpl
.
updateWithModel
(
entity
));
return
ResponseHelper
.
buildResponse
(
shCarServiceImpl
.
updateWithModel
(
entity
));
}
}
...
@@ -114,4 +115,17 @@ public class ShCarController extends BaseController {
...
@@ -114,4 +115,17 @@ public class ShCarController extends BaseController {
public
ResponseModel
<
List
<
ShCar
>>
selectForList
()
{
public
ResponseModel
<
List
<
ShCar
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
shCarServiceImpl
.
queryForShCarList
());
return
ResponseHelper
.
buildResponse
(
shCarServiceImpl
.
queryForShCarList
());
}
}
/**
* 数据查询,校验是否是三环系统数据
*
* @return 结果
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"数据查询,校验是否是三环系统数据"
,
notes
=
"数据查询,校验是否是三环系统数据"
)
@GetMapping
(
value
=
"/searchForSanHan"
)
public
ResponseModel
<
ShCar
>
searchForSanHan
(
@RequestParam
(
value
=
"sanHuanInputValue"
)
String
sanHuanInputValue
)
{
return
ResponseHelper
.
buildResponse
(
shCarServiceImpl
.
getBaseMapper
().
selectOne
(
new
LambdaQueryWrapper
<
ShCar
>()
.
eq
(
ShCar:
:
getSequenceNbr
,
"DJ1309111615548356CAE8B77CBA2"
)));
}
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/ShCarEquController.java
View file @
9e71592c
...
@@ -54,7 +54,7 @@ public class ShCarEquController extends BaseController {
...
@@ -54,7 +54,7 @@ public class ShCarEquController extends BaseController {
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
public
ResponseModel
<
ShCarEqu
>
updateBySequenceNbrShCarEqu
(
@RequestBody
ShCarEqu
entity
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
ResponseModel
<
ShCarEqu
>
updateBySequenceNbrShCarEqu
(
@RequestBody
ShCarEqu
entity
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
entity
.
setSequenceNbr
(
sequenceNbr
);
//
entity.setSequenceNbr(sequenceNbr);
return
ResponseHelper
.
buildResponse
(
shCarEquServiceImpl
.
updateWithModel
(
entity
));
return
ResponseHelper
.
buildResponse
(
shCarEquServiceImpl
.
updateWithModel
(
entity
));
}
}
...
...
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