Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
klck
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
位宇华
klck
Commits
2ad5c86b
Commit
2ad5c86b
authored
Sep 25, 2023
by
lvzhuangzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
010b5e84
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
164 additions
and
46 deletions
+164
-46
ruoyi-supplies/src/main/java/com/ruoyi/system/controller/ActSuppliesCleaningRuleController.java
.../system/controller/ActSuppliesCleaningRuleController.java
+3
-3
ruoyi-supplies/src/main/java/com/ruoyi/system/mapper/ActSuppliesHistorydataMapper.java
...com/ruoyi/system/mapper/ActSuppliesHistorydataMapper.java
+2
-0
ruoyi-supplies/src/main/java/com/ruoyi/system/service/IActSuppliesHistorydataService.java
.../ruoyi/system/service/IActSuppliesHistorydataService.java
+6
-0
ruoyi-supplies/src/main/java/com/ruoyi/system/service/impl/ActSuppliesHistorydataServiceImpl.java
...ystem/service/impl/ActSuppliesHistorydataServiceImpl.java
+5
-0
ruoyi-supplies/src/main/resources/mapper/system/ActSuppliesHistorydataMapper.xml
.../resources/mapper/system/ActSuppliesHistorydataMapper.xml
+9
-0
ruoyi-ui/src/views/system/supplies/cleaning_rule.vue
ruoyi-ui/src/views/system/supplies/cleaning_rule.vue
+5
-0
ruoyi-ui/src/views/system/supplies/index.vue
ruoyi-ui/src/views/system/supplies/index.vue
+134
-43
No files found.
ruoyi-supplies/src/main/java/com/ruoyi/system/controller/ActSuppliesCleaningRuleController.java
View file @
2ad5c86b
package
com.ruoyi.system.controller
;
import
com.ruoyi.common.annotation.Log
;
import
com.ruoyi.common.core.controller.BaseController
;
import
com.ruoyi.common.core.domain.AjaxResult
;
...
...
@@ -31,6 +30,8 @@ public class ActSuppliesCleaningRuleController extends BaseController
@Autowired
private
IActSuppliesHistorydataService
actSuppliesHistorydataService
;
/**
* 获取所有历史数据
*/
...
...
@@ -51,8 +52,7 @@ public class ActSuppliesCleaningRuleController extends BaseController
public
AjaxResult
addActSuppliesSixMinesSummaryTable
(
@RequestBody
ActSuppliesSixMinesSummaryTable
actSuppliesSixMinesSummaryTable
)
{
int
i
=
actSuppliesCleaningRuleService
.
addActSuppliesSixMinesSummaryTable
(
actSuppliesSixMinesSummaryTable
);
int
j
=
actSuppliesHistorydataService
.
updateActSuppliesHistorydataStatusById
(
actSuppliesSixMinesSummaryTable
.
gethId
());
return
toAjax
(
i
);
}
...
...
ruoyi-supplies/src/main/java/com/ruoyi/system/mapper/ActSuppliesHistorydataMapper.java
View file @
2ad5c86b
...
...
@@ -72,4 +72,6 @@ public interface ActSuppliesHistorydataMapper
* @return 结果
*/
List
<
ActSuppliesHistorydata
>
selectActSuppliesHistorydata
();
int
updateActSuppliesHistorydataStatusById
(
Long
gethId
);
}
ruoyi-supplies/src/main/java/com/ruoyi/system/service/IActSuppliesHistorydataService.java
View file @
2ad5c86b
...
...
@@ -66,4 +66,10 @@ public interface IActSuppliesHistorydataService
* @return 结果
*/
List
<
ActSuppliesHistorydata
>
selectActSuppliesHistorydata
();
/**
* 修改历史数据通过id
*
* @return 结果
*/
int
updateActSuppliesHistorydataStatusById
(
Long
gethId
);
}
ruoyi-supplies/src/main/java/com/ruoyi/system/service/impl/ActSuppliesHistorydataServiceImpl.java
View file @
2ad5c86b
...
...
@@ -161,4 +161,9 @@ public class ActSuppliesHistorydataServiceImpl implements IActSuppliesHistorydat
public
List
<
ActSuppliesHistorydata
>
selectActSuppliesHistorydata
()
{
return
actSuppliesHistorydataMapper
.
selectActSuppliesHistorydata
();
}
@Override
public
int
updateActSuppliesHistorydataStatusById
(
Long
gethId
)
{
return
actSuppliesHistorydataMapper
.
updateActSuppliesHistorydataStatusById
(
gethId
);
}
}
ruoyi-supplies/src/main/resources/mapper/system/ActSuppliesHistorydataMapper.xml
View file @
2ad5c86b
...
...
@@ -143,6 +143,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include
refid=
"selectActSuppliesHistorydataVo"
/>
where clean_status = 0
</select>
<update
id=
"updateActSuppliesHistorydataStatusById"
parameterType=
"java.lang.Long"
>
update act_supplies_historydata
set clean_status = 1
<where>
<if
test=
"hId != null"
>
and id = #{hId}
</if>
</where>
</update>
</mapper>
ruoyi-ui/src/views/system/supplies/cleaning_rule.vue
View file @
2ad5c86b
...
...
@@ -32,7 +32,12 @@ export default {
},
methods
:
{
/** 查询规则详情列表 */
getList
()
{
let
timer
=
setTimeout
(()
=>
{
//需要定时执行的代码
getList
();
},
2000
)
selectActSuppliesHistorydata
().
then
(
response
=>
{
var
data
=
response
.
data
;
...
...
ruoyi-ui/src/views/system/supplies/index.vue
View file @
2ad5c86b
This diff is collapsed.
Click to expand it.
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