51,407
社区成员
发帖
与我相关
我的任务
分享
public interface RedCollarService {
public String updateUseVIP(Map userVip,String actionType);
// public String saveUseVIPALL(List userList);
// public String saveClothingSize(Map map);
// public String saveClothingSize(List cllist);
public String test();
}
public class RedCollarServiceImpl implements RedCollarService{
@Override
public String updateUseVIP(Map userVip, String actionType) {
String vl = null;
WebBusiness wb = new WebBusiness(ApplicationContent.getServletContent());
if("ADD".equals(actionType)){
if(wb.saveVipUser(userVip)==1){
vl = "1";
}else{
vl = "0";
}
} else if("UPDATE".equals(actionType)){
if(wb.updateVipUser(userVip)==1){
vl = "1";
}else{
vl = "0";
}
}
return vl;
}
public String test() {
return "123456"; //To change body of implemented methods use File | Settings | File Templates.
}
}