|
@@ -58,10 +58,8 @@ public class QmsQueueListServiceImpl implements IQmsQueueListService {
|
|
|
Map<String, Object> listResultMap = qmsQueueListMapper.getQueueResultByOrderNumber(map);
|
|
|
map.putAll(listResultMap);
|
|
|
//添加主键ID
|
|
|
- long id;
|
|
|
- BigDecimal selectMaxId = qmsQueueListMapper.selectMaxId();
|
|
|
- id = selectMaxId == null ? 1 : selectMaxId.longValue() + 1;
|
|
|
- qmsQueueList.setListId(new BigDecimal(id));
|
|
|
+ BigDecimal maxId = qmsQueueListMapper.selectMaxId();
|
|
|
+ qmsQueueList.setListId(maxId);
|
|
|
//添加网格Id
|
|
|
BigDecimal gridId = DataChange.dataToBigDecimal(map.get("gridId"));
|
|
|
qmsQueueList.setGridId(gridId);
|
|
@@ -79,7 +77,7 @@ public class QmsQueueListServiceImpl implements IQmsQueueListService {
|
|
|
int i = qmsQueueListMapper.insertSelective(qmsQueueList);
|
|
|
//更新排队实绩表
|
|
|
QmsQueueResult qmsQueueResult = new QmsQueueResult();
|
|
|
- qmsQueueResult.setListId(new BigDecimal(id));
|
|
|
+ qmsQueueResult.setListId(maxId);
|
|
|
qmsQueueResult.setResultId(DataChange.dataToBigDecimal(map.get("resultId")));
|
|
|
qmsQueueResult.setResultAcceptTime(new Date()); //添加接收时间
|
|
|
qmsQueueResult.setResultStartTime(new Date()); //添加排队时间
|
|
@@ -124,10 +122,8 @@ public class QmsQueueListServiceImpl implements IQmsQueueListService {
|
|
|
//新增一条链表
|
|
|
QmsQueueList qmsQueueList = new QmsQueueList();
|
|
|
//添加主键ID 新增的链表Id
|
|
|
- long id;
|
|
|
- BigDecimal selectMaxId = qmsQueueListMapper.selectMaxId();
|
|
|
- id = selectMaxId == null ? 1 : selectMaxId.longValue() + 1;
|
|
|
- qmsQueueList.setListId(new BigDecimal(id));
|
|
|
+ BigDecimal maxId = qmsQueueListMapper.selectMaxId();
|
|
|
+ qmsQueueList.setListId(maxId);
|
|
|
//添加排队序号与逻辑删除 0: 正在排队
|
|
|
qmsQueueList.setListNodeOrder(new BigDecimal(nodeOrder));
|
|
|
qmsQueueList.setDeleted(new BigDecimal(0));
|
|
@@ -142,7 +138,7 @@ public class QmsQueueListServiceImpl implements IQmsQueueListService {
|
|
|
//更新排队实绩表
|
|
|
QmsQueueResult qmsQueueResult = new QmsQueueResult();
|
|
|
qmsQueueResult.setId(resultId);
|
|
|
- qmsQueueResult.setListId(new BigDecimal(id)); //添加链表ID
|
|
|
+ qmsQueueResult.setListId(maxId); //添加链表ID
|
|
|
qmsQueueResult.setResultTransferTime(new Date()); //添加转移时间
|
|
|
qmsQueueResult.setResultTransferReason((String) map.get("resultTransferReason")); //添加转移原因
|
|
|
int i1 = qmsQueueResultMapper.updateByPrimaryKeySelective(qmsQueueResult);
|