@@ -61,7 +61,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, favorite_register_date, self_flg) values (?,?,?,?,?)",dto.getInsertValues());
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());
update(" delete from r_shop_member_group WHERE shop_member_id = ? ",newInteger[]{dto.shopMemberId});
for(IntegergroupId:dto.groupIdList){
...
...
@@ -80,7 +80,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, favorite_register_date, self_flg) values (?,?,?,?,?)",dto.getInsertValues());
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());
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});
...
...
@@ -109,6 +109,7 @@ public class ShopMemberDao extends AbstractDao {
sql.append(" sm.shop_member_id ");
sql.append(" ,sm.shop_member_name ");
sql.append(" ,sm.profile_url");
sql.append(" ,sm.favorite_register_date");
sql.append(" FROM ");
sql.append(" m_shop_member AS sm ");
sql.append(" INNER JOIN r_shop_member_group AS rsmg ");
...
...
@@ -137,8 +138,13 @@ public class ShopMemberDao extends AbstractDao {
returnlist;
}
publicbooleanupdateShopMember(MemberInfoDtodto){
longcount=update("update m_shop_member set shop_member_name=?, profile_url=?, favorite_register_date=? where shop_member_id=?",dto.getUpdateValues());
publicbooleanupdateShopMember(ShopMemberDtodto){
longcount=update("update m_shop_member set shop_member_name=?, profile_url=? where shop_member_id=?",dto.getUpdateValues());