fix(lastleg): unblock inbound plan handoff
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
package com.baiyue.lastleg.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.time.LocalDate;
|
||||
|
||||
@Mapper
|
||||
public interface LastlegOrderNoDailySequenceMapper {
|
||||
@Insert("INSERT INTO ll_order_no_daily_sequence(business_date,last_sequence) " +
|
||||
"VALUES(#{businessDate},LAST_INSERT_ID(1)) " +
|
||||
"ON DUPLICATE KEY UPDATE last_sequence=LAST_INSERT_ID(last_sequence+1)")
|
||||
int nextValue(@Param("businessDate") LocalDate businessDate);
|
||||
|
||||
@Select("SELECT LAST_INSERT_ID()")
|
||||
long currentValue();
|
||||
}
|
||||
Reference in New Issue
Block a user