Authored by caoyan

物权转移

... ... @@ -26,7 +26,7 @@
</select>
<update id="updateOwner">
update identify_records set owner=#{owner}
update identify_records set owner=#{owner}, allow_pop=1
where tag_id = #{tagId,jdbcType=VARCHAR}
<if test="nfcUid != null" >
and nfc_uid = #{nfcUid,jdbcType=VARCHAR}
... ...
... ... @@ -812,7 +812,10 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{
}
private void clearIdentifyCache(String tagId, String nfcUid) {
RedisKeyBuilder kb = new RedisKeyBuilder().appendFixed("ufo:product:identifyResultInfo:").
RedisKeyBuilder infoKb = new RedisKeyBuilder().appendFixed("ufo:product:identifyResultInfo:").
appendVar(tagId).appendVar(":").appendVar(nfcUid);
clientCache.delete(infoKb.toString());
RedisKeyBuilder kb = new RedisKeyBuilder().appendFixed("ufo:product:identifyRecord:").
appendVar(tagId).appendVar(":").appendVar(nfcUid);
clientCache.delete(kb.toString());
}
... ...