| @@ -120,8 +120,8 @@ public class WxCarCallBackController extends BaseController { | |||||
| if(tenantId != null) { | if(tenantId != null) { | ||||
| map.put("tenantId", tenantId); | map.put("tenantId", tenantId); | ||||
| } | } | ||||
| Long count = wxCarCmdLogService.getCountBySynId(map); | |||||
| if(count > 0) { | |||||
| WxCarCmdLog carCmdLog = wxCarCmdLogService.getBySynId(map); | |||||
| if(carCmdLog != null) { | |||||
| logger.error("ETCP synId已入库: " + paramMap.toString()); | logger.error("ETCP synId已入库: " + paramMap.toString()); | ||||
| return true; | return true; | ||||
| } | } | ||||
| @@ -30,5 +30,5 @@ public interface WxCarCmdLogMapper extends CommonMapper<WxCarCmdLog, Long> { | |||||
| WxCarCmdLog queryByOrderId(HashMap<String,String> params); | WxCarCmdLog queryByOrderId(HashMap<String,String> params); | ||||
| Long countBySynId(HashMap<String,Object> params); | |||||
| WxCarCmdLog queryBySynId(HashMap<String,Object> params); | |||||
| } | } | ||||
| @@ -52,7 +52,7 @@ public interface WxCarCmdLogService { | |||||
| WxCarCmdLog getByOrderId(HashMap<String, String> params); | WxCarCmdLog getByOrderId(HashMap<String, String> params); | ||||
| Long getCountBySynId(HashMap<String, Object> params); | |||||
| WxCarCmdLog getBySynId(HashMap<String, Object> params); | |||||
| @@ -66,8 +66,8 @@ public class WxCarCmdLogServiceImpl implements WxCarCmdLogService { | |||||
| } | } | ||||
| @Override | @Override | ||||
| public Long getCountBySynId(HashMap<String, Object> params) { | |||||
| return wxCarCmdLogMapper.countBySynId(params); | |||||
| public WxCarCmdLog getBySynId(HashMap<String, Object> params) { | |||||
| return wxCarCmdLogMapper.queryBySynId(params); | |||||
| } | } | ||||
| @@ -142,8 +142,8 @@ | |||||
| </if> | </if> | ||||
| </select> | </select> | ||||
| <select id="countBySynId" parameterType="hashmap" resultType="Long"> | |||||
| select count(id) | |||||
| <select id="queryBySynId" parameterType="hashmap" resultType="com.iformall.domain.po.WxCarCmdLog"> | |||||
| select * | |||||
| from wx_car_cmd_log | from wx_car_cmd_log | ||||
| where 1=1 | where 1=1 | ||||
| <if test=" null != tenantId"> | <if test=" null != tenantId"> | ||||
| @@ -155,6 +155,7 @@ | |||||
| <if test=" null != synId"> | <if test=" null != synId"> | ||||
| and syn_id = #{synId} | and syn_id = #{synId} | ||||
| </if> | </if> | ||||
| limit 1 | |||||
| </select> | </select> | ||||