Commit 2ad5c86b authored by lvzhuangzhuang's avatar lvzhuangzhuang

1

parent 010b5e84
package com.ruoyi.system.controller; package com.ruoyi.system.controller;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
...@@ -31,6 +30,8 @@ public class ActSuppliesCleaningRuleController extends BaseController ...@@ -31,6 +30,8 @@ public class ActSuppliesCleaningRuleController extends BaseController
@Autowired @Autowired
private IActSuppliesHistorydataService actSuppliesHistorydataService; private IActSuppliesHistorydataService actSuppliesHistorydataService;
/** /**
* 获取所有历史数据 * 获取所有历史数据
*/ */
...@@ -51,8 +52,7 @@ public class ActSuppliesCleaningRuleController extends BaseController ...@@ -51,8 +52,7 @@ public class ActSuppliesCleaningRuleController extends BaseController
public AjaxResult addActSuppliesSixMinesSummaryTable(@RequestBody ActSuppliesSixMinesSummaryTable actSuppliesSixMinesSummaryTable) public AjaxResult addActSuppliesSixMinesSummaryTable(@RequestBody ActSuppliesSixMinesSummaryTable actSuppliesSixMinesSummaryTable)
{ {
int i = actSuppliesCleaningRuleService.addActSuppliesSixMinesSummaryTable(actSuppliesSixMinesSummaryTable); int i = actSuppliesCleaningRuleService.addActSuppliesSixMinesSummaryTable(actSuppliesSixMinesSummaryTable);
int j = actSuppliesHistorydataService.updateActSuppliesHistorydataStatusById(actSuppliesSixMinesSummaryTable.gethId());
return toAjax(i); return toAjax(i);
} }
......
...@@ -72,4 +72,6 @@ public interface ActSuppliesHistorydataMapper ...@@ -72,4 +72,6 @@ public interface ActSuppliesHistorydataMapper
* @return 结果 * @return 结果
*/ */
List<ActSuppliesHistorydata> selectActSuppliesHistorydata(); List<ActSuppliesHistorydata> selectActSuppliesHistorydata();
int updateActSuppliesHistorydataStatusById(Long gethId);
} }
...@@ -66,4 +66,10 @@ public interface IActSuppliesHistorydataService ...@@ -66,4 +66,10 @@ public interface IActSuppliesHistorydataService
* @return 结果 * @return 结果
*/ */
List<ActSuppliesHistorydata> selectActSuppliesHistorydata(); List<ActSuppliesHistorydata> selectActSuppliesHistorydata();
/**
* 修改历史数据通过id
*
* @return 结果
*/
int updateActSuppliesHistorydataStatusById(Long gethId);
} }
...@@ -161,4 +161,9 @@ public class ActSuppliesHistorydataServiceImpl implements IActSuppliesHistorydat ...@@ -161,4 +161,9 @@ public class ActSuppliesHistorydataServiceImpl implements IActSuppliesHistorydat
public List<ActSuppliesHistorydata> selectActSuppliesHistorydata() { public List<ActSuppliesHistorydata> selectActSuppliesHistorydata() {
return actSuppliesHistorydataMapper.selectActSuppliesHistorydata(); return actSuppliesHistorydataMapper.selectActSuppliesHistorydata();
} }
@Override
public int updateActSuppliesHistorydataStatusById(Long gethId) {
return actSuppliesHistorydataMapper.updateActSuppliesHistorydataStatusById(gethId);
}
} }
...@@ -143,6 +143,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -143,6 +143,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectActSuppliesHistorydataVo"/> <include refid="selectActSuppliesHistorydataVo"/>
where clean_status = 0 where clean_status = 0
</select> </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> </mapper>
...@@ -32,7 +32,12 @@ export default { ...@@ -32,7 +32,12 @@ export default {
}, },
methods: { methods: {
/** 查询规则详情列表 */ /** 查询规则详情列表 */
getList() { getList() {
let timer = setTimeout(() => {
//需要定时执行的代码
getList();
}, 2000)
selectActSuppliesHistorydata().then(response => { selectActSuppliesHistorydata().then(response => {
var data = response.data; var data = response.data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment