人员消费积分核验
parent
b3f5bcdf3d
commit
2f3fefaf86
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="CopilotChatHistory">
|
||||||
|
<option name="conversations">
|
||||||
|
<list>
|
||||||
|
<Conversation>
|
||||||
|
<option name="createTime" value="1754009144485" />
|
||||||
|
<option name="id" value="019863178ca57ca8b783a19d8d5598be" />
|
||||||
|
<option name="title" value="新对话 2025年8月01日 08:45:44" />
|
||||||
|
<option name="updateTime" value="1754009144485" />
|
||||||
|
</Conversation>
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
package com.nmgs.mapper.bak;
|
||||||
|
|
||||||
|
|
||||||
|
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
|
||||||
|
import com.nmgs.entity.IntegralCheck;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface IntegralCheckBakMapper extends MppBaseMapper<IntegralCheck> {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,39 @@
|
|||||||
|
package com.nmgs.service.impl;
|
||||||
|
|
||||||
|
import com.nmgs.entity.IntegralCheck;
|
||||||
|
import com.nmgs.mapper.bak.IntegralCheckBakMapper;
|
||||||
|
import com.nmgs.mapper.petrol.IntegralCheckMapper;
|
||||||
|
import com.nmgs.util.PropertiesUtil;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class SolveCheckServiceImpl {
|
||||||
|
|
||||||
|
public IntegralCheckMapper integralCheckMapper;
|
||||||
|
@Autowired
|
||||||
|
public void setIntegralCheckMapper(IntegralCheckMapper integralCheckMapper) {
|
||||||
|
this.integralCheckMapper = integralCheckMapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
public IntegralCheckBakMapper integralCheckBakMapper;
|
||||||
|
@Autowired
|
||||||
|
public void setIntegralCheckBakMapper(IntegralCheckBakMapper integralCheckBakMapper) {
|
||||||
|
this.integralCheckBakMapper = integralCheckBakMapper;
|
||||||
|
}
|
||||||
|
@Transactional(timeout = 1800)
|
||||||
|
public void solveCheck(List<IntegralCheck> list){
|
||||||
|
int i=1;
|
||||||
|
for(IntegralCheck integralCheck:list){
|
||||||
|
i++;
|
||||||
|
integralCheckMapper.insert(integralCheck);
|
||||||
|
if(PropertiesUtil.getValue("IsBak").equals("1")){
|
||||||
|
integralCheckBakMapper.insert(integralCheck);
|
||||||
|
}
|
||||||
|
System.out.println("次数===" + i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue