Commit ecb7c9b8 authored by 吴江's avatar 吴江

Merge branch 'dev_rule' into 'dev_upgrade'

Dev rule See merge request !5
parents 64e3c00e 3c5bff29
...@@ -23,7 +23,7 @@ import com.yeejoin.amos.fas.business.service.model.ToipResponse; ...@@ -23,7 +23,7 @@ import com.yeejoin.amos.fas.business.service.model.ToipResponse;
@Component @Component
public class BubbleTipAction implements CustomerAction public class BubbleTipAction implements CustomerAction
{ {
private static String PACKAGEURL = "com.yeejoin.amos.rule.map.action.result.message."; private static String PACKAGEURL = "com.yeejoin.amos.fas.business.action.result.message.";
//@ExposeAction("气泡提示") //@ExposeAction("气泡提示")
public void sendBubbleTip(Object bizobj, Boolean showInfo, Object title, String type) public void sendBubbleTip(Object bizobj, Boolean showInfo, Object title, String type)
......
...@@ -22,7 +22,7 @@ import com.yeejoin.amos.fas.business.service.model.ToipResponse; ...@@ -22,7 +22,7 @@ import com.yeejoin.amos.fas.business.service.model.ToipResponse;
@Component @Component
public class RiskSituationAction implements CustomerAction public class RiskSituationAction implements CustomerAction
{ {
private static String PACKAGEURL = "com.yeejoin.amos.rule.map.action.result.message."; private static String PACKAGEURL = "com.yeejoin.amos.fas.business.action.result.message.";
//@ExposeAction("气泡提示") //@ExposeAction("气泡提示")
public void sendBubbleTip(Object bizobj, Boolean showInfo, String title) public void sendBubbleTip(Object bizobj, Boolean showInfo, String title)
......
...@@ -92,8 +92,7 @@ public class SimpleTipAction implements CustomerAction ...@@ -92,8 +92,7 @@ public class SimpleTipAction implements CustomerAction
} }
} }
MessageRo messageRo = (MessageRo)abstractActionResult.getToipResponse().getBizObj(); MessageRo messageRo = (MessageRo)abstractActionResult.getToipResponse().getBizObj();
message.setTime(messageRo.getCreateDate()); message.setTime(messageRo.getDateTime());
//目前获取不到id
message.setBizId(messageRo.getId()); message.setBizId(messageRo.getId());
message.setBizclassName(abstractActionResult.getToipResponse().getBizObj().getClass().toString()); message.setBizclassName(abstractActionResult.getToipResponse().getBizObj().getClass().toString());
message.setType(type); message.setType(type);
......
package com.yeejoin.amos.fas.business.dao.mapper;
import java.util.List;
import com.yeejoin.amos.fas.dao.entity.Message;
public interface MessageMapper extends BaseMapper {
void save(Message msg);
List<Message> findMessageByBizId(String bizId);
}
...@@ -4,6 +4,7 @@ import java.util.List; ...@@ -4,6 +4,7 @@ import java.util.List;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.yeejoin.amos.fas.business.dao.mapper.MessageMapper;
import com.yeejoin.amos.fas.business.service.intfc.IMessageService; import com.yeejoin.amos.fas.business.service.intfc.IMessageService;
import com.yeejoin.amos.fas.dao.entity.Message; import com.yeejoin.amos.fas.dao.entity.Message;
...@@ -11,18 +12,16 @@ import com.yeejoin.amos.fas.dao.entity.Message; ...@@ -11,18 +12,16 @@ import com.yeejoin.amos.fas.dao.entity.Message;
@Service @Service
public class MessageServiceImpl implements IMessageService { public class MessageServiceImpl implements IMessageService {
//MessageMapper messageMapper;
MessageMapper messageMapper;
@Override @Override
public List<Message> findMessageByBizId(String bizId) { public List<Message> findMessageByBizId(String bizId) {
return null; return messageMapper.findMessageByBizId(bizId);
// TODO Auto-generated method stub
// messageRepository.findMessageByBizId(bizId);
} }
@Override @Override
public void save(Message msg) { public void save(Message msg) {
// TODO Auto-generated method stub messageMapper.save(msg);
} }
} }
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.fas.business.dao.mapper.MessageMapper">
<select id="findMessageByBizId" resultType="com.yeejoin.amos.fas.dao.entity.Message" >
SELECT
id,
time,
title,
content,
type,
sender,
receiver,
reader,
biz_id AS bizId,
bizclass_name AS bizclassName,
create_date AS createDate,
create_user AS createUser,
update_date AS updateDate,
update_user AS updateUser,
is_delete AS isDelete
FROM toip_sys_message WHERE biz_id=#{bizId}
</select>
<insert id="save" >
INSERT INTO toip_sys_message id,time,title,content,type,sender,receiver,reader,biz_id,bizclass_name
VALUES(#{id},#{time},#{title},#{content},#{type},#{sender},#{receiver},#{reader},#{bizId},#{bizclassName})
</insert>
</mapper>
\ No newline at end of file
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