Commit ae5601ce by xieshixiang

修改BUG

parent ca20f174
......@@ -49,7 +49,6 @@
<artifactId>orika</artifactId>
<version>${parent.version}</version>
</dependency>
</dependencies>
<build>
......
......@@ -37,10 +37,7 @@ public class DecryptRequestBodyAdvice implements RequestBodyAdvice {
ObjectMapper objectMapper = new ObjectMapper();
public static void main( String[] args ) {
String value = "{\"id\":123,\"name\":\"李\"}";
System.out.println(EncryptStringAes.encryptAes(value, "AES/ECB/PKCS5Padding"));
}
@Override
public boolean supports( MethodParameter methodParameter, Type type, Class<? extends HttpMessageConverter<?>> aClass ) {
......
package com.hikcreate.edl.pub.web.mobile.api;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class ApiApplicationTests {
@Test
void contextLoads() {
}
}
......@@ -222,7 +222,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, BindInfo> imple
queryReq.setPlateNum(bindInfo.getPlateNum());
queryReq.setPlateType(bindInfo.getPlateType());
queryReq.setTimeEnd(new Date());
queryReq.setTimeStart(DateUtil.offsetMonth(new Date(),-12));
queryReq.setTimeStart(DateUtil.offsetMonth(new Date(), -12));
List<ViolationRes> byPlateNumAndType = violationCache.getByPlateNumAndType(queryReq);
/**
......
......@@ -30,9 +30,9 @@
b.plate_num,b.plate_type,b.gmt_bind_time
from edl_public.bind_info as b
where b.status='1'
<if test="userId!=null and nuserId!=''">
and b.user_id=#{userId}
</if>
<if test="userId!=null and userId!=''">
and b.user_id=#{userId}
</if>
</select>
<update id="unbind">
......@@ -42,7 +42,7 @@
<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 from edl_public.bind_info where unbind_time <![CDATA[<=]]> #{dateTime} and 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