Commit 6c6bf7b7 authored by hanbing's avatar hanbing

[update] 快速特勤,自动解锁选取执行中车牌

parent 49eacd09
......@@ -55,7 +55,7 @@ public class ConsumerHandler implements KafkaListenerErrorHandler {
@PostConstruct
private void initCarplates() {
List<SpecialServicePO> specialServicePOList = specialServiceMapper.selectAll();
List<SpecialServicePO> specialServicePOList = specialServiceMapper.selectExec();
for (SpecialServicePO specialServicePO : specialServicePOList) {
String plateNum = specialServicePO.getPlateNum();
if (StrUtil.isNotEmpty(plateNum)) {
......
......@@ -37,4 +37,6 @@ public interface SpecialServiceMapper {
void updateOne(SpecialServicePO specialServicePO);
SpecialServicePO selectByName(String specialServiceName);
List<SpecialServicePO> selectExec();
}
......@@ -127,4 +127,10 @@
where name = #{specialServiceName}
</select>
<select id="selectExec" resultType="net.wanji.web.po.SpecialServicePO">
select <include refid="Base_Column_List"></include>
from t_special_service_info
where status = 1
</select>
</mapper>
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