Commit 4e1951ce by lixian7

违法类型调整

parent 56d06a36
......@@ -324,7 +324,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, ParkBindInfo> i
for (ViolationMicRes res : byPlateNumAndType) {
ViolationInfoRes info = new ViolationInfoRes();
info.setPlateNum(res.getPlateNum());
info.setAction(res.getVioTypeName());
info.setAction(res.getVioDetailName());
info.setAddress(res.getAddress());
info.setGrade(res.getScore().toString());
info.setMoney(res.getForfeit().toString());
......
......@@ -27,6 +27,6 @@ public class ViolationCache {
*/
// @Cacheable(value = "violations", key = "'plateNum:'+#req.plateNum+':plateType:'+#req.plateType", unless = "#result==null or #result.size()==0")
public List<ViolationMicRes> getByPlateNumAndType(ViolationListByTimeReq req) {
return violatio.listByTime(req).getData();
return violatio.listByTime(req).fallback().getData();
}
}
......@@ -36,6 +36,12 @@ public class ViolationMicRes {
// 违法行为类型(枚举值)
private String vioTypeName;
// 违法类型小类
private String vioDetail;
// 违法类型小类(枚举值)
private String vioDetailName;
// 违法行为
private String vioAct;
......
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