Commit 939738d6 authored by hezhen's avatar hezhen

123

parent 46ef9a51
...@@ -145,7 +145,7 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> { ...@@ -145,7 +145,7 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
siteBiz.insertSelective(site); siteBiz.insertSelective(site);
siteId=site.getId(); siteId=site.getId();
}else { }else {
siteBiz.updateById(site); siteBiz.updateSelectiveById(site);
siteIds.add(siteId); siteIds.add(siteId);
} }
if(site.getType()==0){ if(site.getType()==0){
...@@ -167,7 +167,7 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> { ...@@ -167,7 +167,7 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
if(tagId==null||tagId==0){ if(tagId==null||tagId==0){
tagBiz.insertSelective(tag); tagBiz.insertSelective(tag);
}else { }else {
tagBiz.updateById(tag); tagBiz.updateSelectiveById(tag);
tagIds.add(tagId); tagIds.add(tagId);
} }
} }
...@@ -215,7 +215,7 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> { ...@@ -215,7 +215,7 @@ public class TourGoodBiz extends BaseBiz<TourGoodMapper, TourGood> {
speBiz.insertSelective(spePrice); speBiz.insertSelective(spePrice);
priceId=spePrice.getId(); priceId=spePrice.getId();
}else { }else {
speBiz.updateById(spePrice); speBiz.updateSelectiveById(spePrice);
priceIds.add(priceId); priceIds.add(priceId);
} }
prices.add(priceId); prices.add(priceId);
......
...@@ -29,7 +29,7 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification> ...@@ -29,7 +29,7 @@ public interface TourGoodVerificationMapper extends Mapper<TourGoodVerification>
* @param tourGoodVerification * @param tourGoodVerification
* @return * @return
*/ */
@Insert("insert into tour_good_verification(`spe_id`,`site_id`,`good_id`)values(#{speId} ,#{siteId} ,#{goodId}) where `spe_id`<>#{spId} and `site_id`<>#{siteId} and `good_id`<>#{goodId}") @Insert("insert into tour_good_verification(`spe_id`,`site_id`,`good_id`)values(#{speId} ,#{siteId} ,#{goodId}) where `spe_id`<>#{speId} and `site_id`<>#{siteId} and `good_id`<>#{goodId}")
int insertTourGoodVerification(TourGoodVerification tourGoodVerification); int insertTourGoodVerification(TourGoodVerification tourGoodVerification);
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment