1. 程式人生 > >springboot+springmvc+mybatis 使用註解對資料庫的增、改和查操作

springboot+springmvc+mybatis 使用註解對資料庫的增、改和查操作

@Insert("INSERT INTO mstb_crm_customer_field(ID,BID,CBID," +
"MD5,OWNERADA,STATUS,FIELD_NAME,FIELD_INDEX,FIELD_CONTENT," +
"CREATE_TIME,UPDATE_TIME,SPARE1,SPARE2,SPARE3)" +
"VALUES(MSTB_CRM_CUSTOMER_FIELD_SEQ.nextval," +
"#{businessId,jdbcType=VARCHAR}," +
"#{customerBusId,jdbcType=VARCHAR}," +
"#{md5,jdbcType=VARCHAR}," +
"#{ownerada,jdbcType=VARCHAR}," +
"#{status,jdbcType=INTEGER}," +
"#{fieldName,jdbcType=VARCHAR}," +
"#{fieldIndex,jdbcType=INTEGER}," +
"#{fieldContent,jdbcType=VARCHAR}," +
"#{createTime,jdbcType=TIMESTAMP}," +
"#{updateTime,jdbcType=TIMESTAMP}," +
"#{spare1,jdbcType=VARCHAR}," +
"#{spare2,jdbcType=VARCHAR}," +
"#{spare3,jdbcType=VARCHAR})")
public void insert(MstbCrmCustomerField customerField) ;