Authored by csgyoho

ufo消息盒子-跳转规则

... ... @@ -27,7 +27,8 @@ public class InBox {
private String content;
private Integer businessType;
/**跳转规则*/
private String action;
public String getIsDel() {
return isDel;
}
... ... @@ -107,4 +108,12 @@ public class InBox {
public void setBusinessType(Integer businessType) {
this.businessType = businessType;
}
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
}
... ...
... ... @@ -149,6 +149,14 @@ public class InBoxServiceImpl implements IInBoxService {
}
List<InBox> inBoxes = inBoxDao.selectInboxs(getTableName(reqVO.getUid()),reqVO.getType(),
reqVO.getUid(),reqVO.getRowNo(),reqVO.getLimit());
if(!CollectionUtils.isEmpty(inBoxes)){
for(InBox inBox : inBoxes){
InboxBusinessTypeEnum typeEnum = InboxBusinessTypeEnum.getByTypeAndBusinessType(inBox.getType(),inBox.getBusinessType());
if(typeEnum != null){
inBox.setAction(typeEnum.getAction());
}
}
}
response.setList(inBoxes);
response.setPage(reqVO.getPage());
response.setSize(reqVO.getLimit());
... ...