|
@@ -74,7 +74,7 @@ public class DataCollectController {
|
|
|
public List<TisTimeVO> checkCisData(@RequestBody List<TisTimeVO> toSendList) {
|
|
|
if(!CollectionUtils.isEmpty(toSendList)){
|
|
|
for (TisTimeVO tisTimeVO : toSendList) {
|
|
|
- String sqlQuery = "select top 1 iRealCOID from ca_batchmap where cMOCode = ? and iMOSubSN = ? ";
|
|
|
+ String sqlQuery = "select max(iRealCOID) from ca_batchmap where cMOCode = ? and iMOSubSN = ? ";
|
|
|
try (Connection connection = sqlServerDataSource.getConnection()) {
|
|
|
PreparedStatement queryStmt = connection.prepareStatement(sqlQuery);
|
|
|
queryStmt.setString(1, tisTimeVO.getOrderId());
|