Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
236b3034
Commit
236b3034
authored
Jul 11, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据批次号获取预案的步骤代码提交
parent
4907e949
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
2 deletions
+33
-2
PlanVisual3dController.java
.../amos/fas/business/controller/PlanVisual3dController.java
+11
-2
PlanOperationRecordMapper.java
...os/fas/business/dao/mapper/PlanOperationRecordMapper.java
+6
-0
PlanVisual3dServiceImpl.java
...os/fas/business/service/impl/PlanVisual3dServiceImpl.java
+5
-0
IPlanVisual3dService.java
...amos/fas/business/service/intfc/IPlanVisual3dService.java
+6
-0
PlanOperationRecordMapper.xml
...rc/main/resources/db/mapper/PlanOperationRecordMapper.xml
+5
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/PlanVisual3dController.java
View file @
236b3034
package
com
.
yeejoin
.
amos
.
fas
.
business
.
controller
;
package
com
.
yeejoin
.
amos
.
fas
.
business
.
controller
;
import
com.yeejoin.amos.fas.business.service.intfc.IPlanVisual3dService
;
import
com.yeejoin.amos.fas.business.service.intfc.IPlanVisual3dService
;
import
com.yeejoin.amos.fas.business.util.StringUtil
;
import
com.yeejoin.amos.fas.config.Permission
;
import
com.yeejoin.amos.fas.config.Permission
;
import
com.yeejoin.amos.fas.core.util.CommonResponse
;
import
com.yeejoin.amos.fas.core.util.CommonResponse
;
import
com.yeejoin.amos.fas.core.util.CommonResponseUtil
;
import
com.yeejoin.amos.fas.core.util.CommonResponseUtil
;
...
@@ -151,13 +152,21 @@ public class PlanVisual3dController extends BaseController {
...
@@ -151,13 +152,21 @@ public class PlanVisual3dController extends BaseController {
@ApiOperation
(
value
=
"根据批次号获取预案的步骤"
,
notes
=
"根据批次号获取预案的步骤"
)
@ApiOperation
(
value
=
"根据批次号获取预案的步骤"
,
notes
=
"根据批次号获取预案的步骤"
)
@GetMapping
(
value
=
"/plan/getPlanStep/{batchNo}"
)
@GetMapping
(
value
=
"/plan/getPlanStep/{batchNo}"
)
public
ResponseModel
getPlanStep
(
@PathVariable
(
"batchNo"
)
String
batchNo
)
{
public
ResponseModel
getPlanStep
(
@PathVariable
(
"batchNo"
)
String
batchNo
)
{
return
CommonResponseUtil
.
successNew
(
planVisual3dService
.
getPlanStepByBatchNo
(
batchNo
));
String
newestBatchNo
=
planVisual3dService
.
getNewestBatchNo
();
if
(!
StringUtil
.
isNotEmpty
(
newestBatchNo
))
{
return
CommonResponseUtil
.
successNew
(
null
);
}
return
CommonResponseUtil
.
successNew
(
planVisual3dService
.
getPlanStepByBatchNo
(
newestBatchNo
));
}
}
@Permission
@Permission
@ApiOperation
(
value
=
"根据批次号获取预案的记录"
,
notes
=
"根据R批次号获取预案的记录"
)
@ApiOperation
(
value
=
"根据批次号获取预案的记录"
,
notes
=
"根据R批次号获取预案的记录"
)
@GetMapping
(
value
=
"/plan/getPlaneRecord/{batchNo}"
)
@GetMapping
(
value
=
"/plan/getPlaneRecord/{batchNo}"
)
public
ResponseModel
getPlaneRecord
(
@PathVariable
(
"batchNo"
)
String
batchNo
)
{
public
ResponseModel
getPlaneRecord
(
@PathVariable
(
"batchNo"
)
String
batchNo
)
{
return
CommonResponseUtil
.
successNew
(
planVisual3dService
.
getPlaneRecordByBatchNo
(
batchNo
));
String
newestBatchNo
=
planVisual3dService
.
getNewestBatchNo
();
if
(!
StringUtil
.
isNotEmpty
(
newestBatchNo
))
{
return
CommonResponseUtil
.
successNew
(
null
);
}
return
CommonResponseUtil
.
successNew
(
planVisual3dService
.
getPlaneRecordByBatchNo
(
newestBatchNo
));
}
}
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/dao/mapper/PlanOperationRecordMapper.java
View file @
236b3034
...
@@ -28,4 +28,10 @@ public interface PlanOperationRecordMapper {
...
@@ -28,4 +28,10 @@ public interface PlanOperationRecordMapper {
* @return 步骤
* @return 步骤
*/
*/
String
getPlanStepByBatchNo
(
String
batchNo
);
String
getPlanStepByBatchNo
(
String
batchNo
);
/**
* 获取batchNo
* @return
*/
String
getNewestBatchNo
();
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/PlanVisual3dServiceImpl.java
View file @
236b3034
...
@@ -248,6 +248,11 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
...
@@ -248,6 +248,11 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
}
}
@Override
@Override
public
String
getNewestBatchNo
()
{
return
planOperationRecordMapper
.
getNewestBatchNo
();
}
@Override
public
ToipResponse
getPlanStepByBatchNo
(
String
batchNo
)
{
public
ToipResponse
getPlanStepByBatchNo
(
String
batchNo
)
{
ToipResponse
toipResponse
=
new
ToipResponse
();
ToipResponse
toipResponse
=
new
ToipResponse
();
// 根据批次号查询预案步骤
// 根据批次号查询预案步骤
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/intfc/IPlanVisual3dService.java
View file @
236b3034
...
@@ -43,6 +43,12 @@ public interface IPlanVisual3dService {
...
@@ -43,6 +43,12 @@ public interface IPlanVisual3dService {
void
deleteTextPlanFile
(
Long
id
);
void
deleteTextPlanFile
(
Long
id
);
/**
/**
* 查最新的批次号
* @return
*/
String
getNewestBatchNo
();
/**
* 根据批次号获取预案步骤
* 根据批次号获取预案步骤
* @param batchNo 批次号
* @param batchNo 批次号
* @return 预案步骤
* @return 预案步骤
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/PlanOperationRecordMapper.xml
View file @
236b3034
...
@@ -115,4 +115,8 @@
...
@@ -115,4 +115,8 @@
WHERE
WHERE
cpor.batch_no = #{batchNo}
cpor.batch_no = #{batchNo}
</select>
</select>
<select
id=
"getNewestBatchNo"
resultType=
"java.lang.String"
>
select batch_no as batchNo from c_plan_operation_record where status = 0 and is_delete = 0 order by create_date desc limit 1
</select>
</mapper>
</mapper>
\ No newline at end of file
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