Commit 6cbbfded by xieshixiang

修改BUG

parent edd4abfb
package com.hikcreate.edl.pub.web.mobile.infra.data.cache;
import com.hikcreate.edl.pub.web.mobile.infra.data.feign.dcp_service_vehicle.ViolationFeign;
import com.hikcreate.edl.pub.web.mobile.infra.data.feign.dcp_service_vehicle.param.request.ViolationIdCardQueryReq;
import com.hikcreate.edl.pub.web.mobile.infra.data.feign.dcp_service_vehicle.param.request.ViolationPlateNumAndTypeQueryReq;
import com.hikcreate.edl.pub.web.mobile.infra.data.feign.dcp_service_vehicle.param.response.ViolationRes;
import org.springframework.cache.annotation.Cacheable;
......@@ -26,8 +25,9 @@ public class ViolationCache {
* @param req 号牌+号牌类型,时间开始-结束
* @return
*/
@Cacheable(value = "violations", key = "'plateNum:'+#req.plateNum+':plateType:'+req.plateType+':timeStart:'+#req.timeStart+':timeEnd:'+#req.timeEnd", unless = "#result==null or #result.size()==0")
public List<ViolationRes> getByPlateNumAndType( ViolationPlateNumAndTypeQueryReq req ) {
@Cacheable(value = "violations", key = "'plateNum:'+#req.plateNum+':plateType:'+req.plateType+':timeStart:'+#req" +
".timeStart.toString()+':timeEnd:'+#req.timeEnd.toString()", unless = "#result==null or #result.size()==0")
public List<ViolationRes> getByPlateNumAndType(ViolationPlateNumAndTypeQueryReq req) {
return violatio.getByPlateNumAndType(req);
}
}
......@@ -6,6 +6,7 @@ import com.hikcreate.edl.pub.web.mobile.infra.core.page.PageResult;
import com.hikcreate.edl.pub.web.mobile.infra.model.BindInfo;
import com.hikcreate.edl.pub.web.mobile.infra.model.param.request.BindInfoQueryReq;
import com.hikcreate.edl.pub.web.mobile.infra.model.param.request.H5BindInfoQuery;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
......@@ -22,7 +23,7 @@ public interface BindInfoMapper extends BaseMapper<BindInfo> {
Integer bindInfoInsert(BindInfo info);
Integer clearPast(Date dateTime);
Integer clearPast(@Param("dateTime") Date dateTime);
Integer unbind(BindInfo info);
......
......@@ -41,8 +41,8 @@
</update>
<delete id="clearPast">
delete from edl_public.bind_info as b where b.unbind_time <![CDATA[ <= ]]> #{dateTime} and b.status='0'
<delete id="clearPast" parameterType="java.util.Date">
delete from edl_public.bind_info as b where b.unbind_time <![CDATA[<=]]> #{dateTime} and b.status='0'
</delete>
</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