|
@@ -58,10 +58,8 @@ public class QmsQueueListServiceImpl implements IQmsQueueListService {
|
|
|
Map<String, Object> listResultMap = qmsQueueListMapper.getQueueResultByOrderNumber(map);
|
|
|
map.putAll(listResultMap);
|
|
|
|
|
|
- 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);
|
|
|
|
|
|
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();
|
|
|
|
|
|
- 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);
|
|
|
|
|
|
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));
|
|
|
+ qmsQueueResult.setListId(maxId);
|
|
|
qmsQueueResult.setResultTransferTime(new Date());
|
|
|
qmsQueueResult.setResultTransferReason((String) map.get("resultTransferReason"));
|
|
|
int i1 = qmsQueueResultMapper.updateByPrimaryKeySelective(qmsQueueResult);
|