@@ -37,6 +37,10 @@ public class ShopMemberDao extends AbstractDao {
if(column!=-1){
dto.shopMemberName=cursor.getString(column);
}
column=cursor.getColumnIndex("login_id");
if(column!=-1){
dto.loginId=cursor.getString(column);
}
column=cursor.getColumnIndex("profile_url");
if(column!=-1){
dto.profileUrl=cursor.getString(column);
...
...
@@ -64,7 +68,7 @@ public class ShopMemberDao extends AbstractDao {
publicvoidinsertShopMember(ShopMemberDtodto){
try{
beginTransaction();
insert("insert or replace into m_shop_member (shop_member_id, shop_member_name, profile_url, self_flg, favorite_register_date) values (?,?,?,?,(select favorite_register_date from m_shop_member where shop_member_id = ?))",dto.getInsertValues());
insert("insert or replace into m_shop_member (shop_member_id, shop_member_name, login_id, profile_url, self_flg, favorite_register_date) values (?,?,?,?,?,(select favorite_register_date from m_shop_member where shop_member_id = ?))",dto.getInsertValues());
update(" delete from r_shop_member_group WHERE shop_member_id = ? ",newInteger[]{dto.shopMemberId});
for(IntegergroupId:dto.groupIdList){
...
...
@@ -83,7 +87,7 @@ public class ShopMemberDao extends AbstractDao {
try{
beginTransaction();
for(ShopMemberDtodto:dtoList){
insert("insert or replace into m_shop_member (shop_member_id, shop_member_name, profile_url, self_flg, favorite_register_date) values (?,?,?,?, (select favorite_register_date from m_shop_member where shop_member_id = ?))",dto.getInsertValues());
insert("insert or replace into m_shop_member (shop_member_id, shop_member_name, login_id, profile_url, self_flg, favorite_register_date) values (?,?,?,?,?, (select favorite_register_date from m_shop_member where shop_member_id = ?))",dto.getInsertValues());
if(dto.groupIdList==null){continue;}
for(IntegergroupId:dto.groupIdList){
insert("insert or replace into r_shop_member_group (shop_member_id, group_id) values ("+dto.shopMemberId+",?)",newInteger[]{groupId});
...
...
@@ -143,6 +147,33 @@ public class ShopMemberDao extends AbstractDao {