PeiMouRen opened a new issue, #19541:
URL: https://github.com/apache/shardingsphere/issues/19541

   spring boot config:
   ```
   rules:
         sharding:
           tables:
             t_order: 
               actual-data-nodes: ds$->{0..1}.t_order_$->{1..31}
               database-strategy: 
                 standard:
                   sharding-column: phone 
                   sharding-algorithm-name: database-class-base 
               table-strategy: 
                 standard:
                   sharding-column: logtime
                   sharding-algorithm-name: table-class-base
               key-generate-strategy: 
                 column: order_id 
                 key-generator-name: snowflake 
           sharding-algorithms:
             database-class-base:
               type: CLASS_BASED
               props:
                 strategy: STANDARD
                 algorithmClassName: 
com.lhx.shardingjdbcdemo.MyShardingAlgorithm
             table-class-base:
               type: CLASS_BASED
               props:
                 strategy: STANDARD
                 algorithmClassName: 
com.lhx.shardingjdbcdemo.MyShardingAlgorithm11
           key-generators:
             snowflake:
               type: SNOWFLAKE 
   ```
   How do I specify the primary key column value when I insert a piece of data 
using MyBatis?
   example:
       `insert into t_order(order_id, logtime, phone) values (#{orderId}, 
#{logtime}, #{phone})`
       How do I get #{orderId} with the Snowflake algorithm


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to