| @@ -0,0 +1,2 @@ | |||||
| ALTER TABLE `wx_msg_record` | |||||
| ADD INDEX `idx_uuid_msg`(`uuid`, `msg_type`, `msg_status`, `status_message`(8)) USING BTREE COMMENT '消息索引'; | |||||
| @@ -2346,6 +2346,7 @@ public class PosServiceImpl implements PosService { | |||||
| try { | try { | ||||
| orderQ = orderMapper.selectOne(new QueryWrapper<>(orderQ)); | orderQ = orderMapper.selectOne(new QueryWrapper<>(orderQ)); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| logger.error("sql error ",e); | |||||
| isExist = false; | isExist = false; | ||||
| } | } | ||||
| if (orderQ != null) { | if (orderQ != null) { | ||||
| @@ -2424,6 +2425,7 @@ public class PosServiceImpl implements PosService { | |||||
| try { | try { | ||||
| refundQ = orderMapper.selectOne(new QueryWrapper<>(refundQ)); | refundQ = orderMapper.selectOne(new QueryWrapper<>(refundQ)); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| logger.error("sql error ",e); | |||||
| } | } | ||||
| if (refundQ != null) { | if (refundQ != null) { | ||||
| logger.error(ErrorCode.POS_ORDER_HAD_SYNCED.getMessage()); | logger.error(ErrorCode.POS_ORDER_HAD_SYNCED.getMessage()); | ||||
| @@ -85,7 +85,7 @@ public class WxCardSpendServiceImpl implements WxCardSpendService { | |||||
| try { | try { | ||||
| couponMerchant = wxCouponMerchantMapper.selectOne(new QueryWrapper(couponMerchantQ)); | couponMerchant = wxCouponMerchantMapper.selectOne(new QueryWrapper(couponMerchantQ)); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| logger.error("couponmerchant not found: " + cardInfo.getCouponId()); | |||||
| logger.error("couponmerchant not found: " + cardInfo.getCouponId(),e); | |||||
| } | } | ||||
| return couponMerchant; | return couponMerchant; | ||||
| } | } | ||||
| @@ -59,15 +59,22 @@ | |||||
| order by createtime desc | order by createtime desc | ||||
| </sql> | </sql> | ||||
| <!-- <update id="updateByBaseMsg" parameterType="com.iformall.domain.po.msg.BaseMsg">--> | |||||
| <!-- update wx_msg_record set updatetime = now()--> | |||||
| <!-- <if test=" null != msgStatus ">,msg_status = #{msgStatus}</if>--> | |||||
| <!-- <if test=" null != statusMessage ">,status_message = #{statusMessage}</if>--> | |||||
| <!-- where id in(--> | |||||
| <!-- select t.id from (--> | |||||
| <!-- select id from wx_msg_record where uuid = #{uuid}--> | |||||
| <!-- ) t--> | |||||
| <!-- )--> | |||||
| <!-- </update>--> | |||||
| <update id="updateByBaseMsg" parameterType="com.iformall.domain.po.msg.BaseMsg"> | <update id="updateByBaseMsg" parameterType="com.iformall.domain.po.msg.BaseMsg"> | ||||
| update wx_msg_record set updatetime = now() | update wx_msg_record set updatetime = now() | ||||
| <if test=" null != msgStatus ">,msg_status = #{msgStatus}</if> | <if test=" null != msgStatus ">,msg_status = #{msgStatus}</if> | ||||
| <if test=" null != statusMessage ">,status_message = #{statusMessage}</if> | <if test=" null != statusMessage ">,status_message = #{statusMessage}</if> | ||||
| where id in( | |||||
| select t.id from ( | |||||
| select id from wx_msg_record where uuid = #{uuid} | |||||
| ) t | |||||
| ) | |||||
| where uuid = #{uuid} | |||||
| </update> | </update> | ||||
| <select id="findList" parameterType="com.iformall.domain.po.msg.WxMsgRecord" resultMap="BaseResultMap"> | <select id="findList" parameterType="com.iformall.domain.po.msg.WxMsgRecord" resultMap="BaseResultMap"> | ||||
| @@ -184,7 +184,7 @@ public class DataInitController extends BaseController { | |||||
| try { | try { | ||||
| ret = creditHistoryMapper.selectOne(new QueryWrapper<>(q)); | ret = creditHistoryMapper.selectOne(new QueryWrapper<>(q)); | ||||
| } catch (Exception e) { | } catch (Exception e) { | ||||
| logger.error("sql error ",e); | |||||
| } | } | ||||
| if (ret != null) { | if (ret != null) { | ||||
| log.debug(" : {}", ret.getId()); | log.debug(" : {}", ret.getId()); | ||||