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
4cbcd28c
Commit
4cbcd28c
authored
Oct 14, 2022
by
limei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改模拟表单提交接口
parent
85890fe4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
2 deletions
+41
-2
CheckModelMapper.java
...oin/amos/boot/module/tdc/api/mapper/CheckModelMapper.java
+3
-0
CheckModelService.java
...n/amos/boot/module/tdc/api/service/CheckModelService.java
+4
-0
CheckModelMapper.xml
...le-tdc-api/src/main/resources/mapper/CheckModelMapper.xml
+6
-0
CheckModelController.java
.../boot/module/tdc/biz/controller/CheckModelController.java
+17
-2
CheckModelImpl.java
...amos/boot/module/tdc/biz/service/impl/CheckModelImpl.java
+11
-0
No files found.
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/mapper/CheckModelMapper.java
View file @
4cbcd28c
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.module.tdc.api.dto.CheckModelDto;
...
@@ -8,6 +8,7 @@ import com.yeejoin.amos.boot.module.tdc.api.dto.CheckModelDto;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckModel
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckModel
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.Mapper
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
...
@@ -21,4 +22,6 @@ public interface CheckModelMapper extends BaseMapper<CheckModel> {
...
@@ -21,4 +22,6 @@ public interface CheckModelMapper extends BaseMapper<CheckModel> {
String
saveModel
(
JSONObject
jsonObject
);
String
saveModel
(
JSONObject
jsonObject
);
String
modifyModel
(
CheckModel
checkModel
);
}
}
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/java/com/yeejoin/amos/boot/module/tdc/api/service/CheckModelService.java
View file @
4cbcd28c
...
@@ -65,5 +65,9 @@ public interface CheckModelService extends IService<CheckModel> {
...
@@ -65,5 +65,9 @@ public interface CheckModelService extends IService<CheckModel> {
String
saveModel
(
JSONObject
jsonObject
);
String
saveModel
(
JSONObject
jsonObject
);
String
modifyModel
(
CheckModel
checkModel
);
}
}
amos-boot-system-tdc/amos-boot-module-tdc-api/src/main/resources/mapper/CheckModelMapper.xml
View file @
4cbcd28c
...
@@ -11,4 +11,10 @@
...
@@ -11,4 +11,10 @@
</where>
</where>
</select>
</select>
<update
id=
"modifyModel"
>
update tdc_model SET model_name=#{modelName},amos_org_code=#{amosOrgCode},idx_table_name=#{idxTableName},
model_rule=#{modelRule},model_file=#{modelFile},model_picture_url=#{modelPictureUrl} where sequence_nbr=#{sequenceNbr}
</update>
</mapper>
</mapper>
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/controller/CheckModelController.java
View file @
4cbcd28c
...
@@ -48,6 +48,17 @@ public class CheckModelController extends BaseController {
...
@@ -48,6 +48,17 @@ public class CheckModelController extends BaseController {
* return
* return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"selectBySequenceNbr"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据amosOrgCode查询模型列表"
,
notes
=
"根据amosOrgCode查询模型列表"
)
public
ResponseModel
<
CheckModel
>
selectBySequenceNbr
(
String
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
checkModelService
.
getById
(
sequenceNbr
));
}
/**
* 根据amosOrgCode查询
* return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"selectOneByDate"
)
@GetMapping
(
value
=
"selectOneByDate"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据code查询最后一次校验模型"
,
notes
=
"查询code最后一次校验模型"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据code查询最后一次校验模型"
,
notes
=
"查询code最后一次校验模型"
)
public
ResponseModel
<
CheckModel
>
selectOneByDate
(
String
amosOrgCode
)
{
public
ResponseModel
<
CheckModel
>
selectOneByDate
(
String
amosOrgCode
)
{
...
@@ -112,9 +123,13 @@ public class CheckModelController extends BaseController {
...
@@ -112,9 +123,13 @@ public class CheckModelController extends BaseController {
public
ResponseModel
<
String
>
saveModel
(
@RequestBody
JSONObject
jsonObject
){
public
ResponseModel
<
String
>
saveModel
(
@RequestBody
JSONObject
jsonObject
){
return
ResponseHelper
.
buildResponse
(
checkModelService
.
saveModel
(
jsonObject
));
return
ResponseHelper
.
buildResponse
(
checkModelService
.
saveModel
(
jsonObject
));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/modifyModel"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"根据sequenceNbr修改模型校验表单"
,
notes
=
"根据sequenceNbr修改模型校验表单"
)
public
ResponseModel
<
String
>
modifyModel
(
@RequestBody
CheckModel
checkModel
)
{
return
ResponseHelper
.
buildResponse
(
checkModelService
.
modifyModel
(
checkModel
));
}
}
}
amos-boot-system-tdc/amos-boot-module-tdc-biz/src/main/java/com/yeejoin/amos/boot/module/tdc/biz/service/impl/CheckModelImpl.java
View file @
4cbcd28c
...
@@ -5,12 +5,14 @@ import com.alibaba.fastjson.JSON;
...
@@ -5,12 +5,14 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.toolkit.ObjectUtils
;
import
com.baomidou.mybatisplus.core.toolkit.ObjectUtils
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.yeejoin.amos.boot.module.tdc.api.dto.CheckModelDto
;
import
com.yeejoin.amos.boot.module.tdc.api.dto.CheckModelDto
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckModel
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckModel
;
import
com.yeejoin.amos.boot.module.tdc.api.entity.CheckResult
;
import
com.yeejoin.amos.boot.module.tdc.api.enums.ModeNameProjectIdEnum
;
import
com.yeejoin.amos.boot.module.tdc.api.enums.ModeNameProjectIdEnum
;
import
com.yeejoin.amos.boot.module.tdc.api.enums.ModelNameEnum
;
import
com.yeejoin.amos.boot.module.tdc.api.enums.ModelNameEnum
;
import
com.yeejoin.amos.boot.module.tdc.api.feign.IdxFeignService
;
import
com.yeejoin.amos.boot.module.tdc.api.feign.IdxFeignService
;
...
@@ -302,5 +304,14 @@ public class CheckModelImpl extends ServiceImpl<CheckModelMapper, CheckModel> im
...
@@ -302,5 +304,14 @@ public class CheckModelImpl extends ServiceImpl<CheckModelMapper, CheckModel> im
}
}
@Override
public
String
modifyModel
(
CheckModel
checkModel
){
return
checkModelMapper
.
modifyModel
(
checkModel
);
}
}
}
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