|
|
|
@ -495,12 +495,14 @@ public class DoudianMsgServiceImpl implements DoudianMsgService {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
row.setLocked(1L);
|
|
|
|
|
DoudianTradeMsgQueue updateData = new DoudianTradeMsgQueue();
|
|
|
|
|
updateData.setDoudianTradeMsgQueueId(row.getDoudianTradeMsgQueueId());
|
|
|
|
|
updateData.setLocked(1L);
|
|
|
|
|
// row.setHostname("");
|
|
|
|
|
row.setGmtLastHeartbeat(new Date());
|
|
|
|
|
row.setGmtLocked(new Date());
|
|
|
|
|
row.setGmtModified(new Date());
|
|
|
|
|
int affRow = doudianTradeMsgQueueMapper.updateByPrimaryKeySelective(row);
|
|
|
|
|
updateData.setGmtLastHeartbeat(new Date());
|
|
|
|
|
updateData.setGmtLocked(new Date());
|
|
|
|
|
updateData.setGmtModified(new Date());
|
|
|
|
|
int affRow = doudianTradeMsgQueueMapper.updateByPrimaryKeySelective(updateData);
|
|
|
|
|
if (affRow == 1) {
|
|
|
|
|
// todo: 心跳后面想想怎么搞
|
|
|
|
|
return row;
|
|
|
|
@ -531,12 +533,14 @@ public class DoudianMsgServiceImpl implements DoudianMsgService {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
row.setLocked(1);
|
|
|
|
|
DoudianAftersaleMsgQueue updateData = new DoudianAftersaleMsgQueue();
|
|
|
|
|
updateData.setDoudianAftersaleMsgQueueId(row.getDoudianAftersaleMsgQueueId());
|
|
|
|
|
updateData.setLocked(1);
|
|
|
|
|
// row.setHostname("");
|
|
|
|
|
row.setGmtLastHeartbeat(new Date());
|
|
|
|
|
row.setGmtLocked(new Date());
|
|
|
|
|
row.setGmtModified(new Date());
|
|
|
|
|
int affRow = doudianAftersaleMsgQueueMapper.updateByPrimaryKeySelective(row);
|
|
|
|
|
updateData.setGmtLastHeartbeat(new Date());
|
|
|
|
|
updateData.setGmtLocked(new Date());
|
|
|
|
|
updateData.setGmtModified(new Date());
|
|
|
|
|
int affRow = doudianAftersaleMsgQueueMapper.updateByPrimaryKeySelective(updateData);
|
|
|
|
|
if (affRow == 1) {
|
|
|
|
|
// todo: 心跳后面想想怎么搞
|
|
|
|
|
return row;
|
|
|
|
|