diff --git a/ruoyi-abuwx/pom.xml b/ruoyi-abuwx/pom.xml deleted file mode 100644 index 4c9b28e..0000000 --- a/ruoyi-abuwx/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - ruoyi - com.ruoyi - 3.8.8 - - 4.0.0 - - ruoyi-abuwx - - 微信小程序 - - - - - com.ruoyi - ruoyi-common - - - - com.ruoyi - ruoyi-system - - - com.ruoyi - ruoyi-framework - - - com.ruoyi - ruoyi-common - - - org.projectlombok - lombok - - - cn.hutool - hutool-all - 5.8.31 - - - - \ No newline at end of file diff --git a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/controller/AbucoderWxuserController.java b/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/controller/AbucoderWxuserController.java deleted file mode 100644 index 42b3c77..0000000 --- a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/controller/AbucoderWxuserController.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.ruoyi.abuwx.controller; - -import java.util.List; -import javax.servlet.http.HttpServletResponse; -import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; -import org.springframework.web.bind.annotation.DeleteMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; -import com.ruoyi.common.annotation.Log; -import com.ruoyi.common.core.controller.BaseController; -import com.ruoyi.common.core.domain.AjaxResult; -import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.abuwx.domain.AbucoderWxuser; -import com.ruoyi.abuwx.service.IAbucoderWxuserService; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.common.core.page.TableDataInfo; - -/** - * 微信用户Controller - * - * @author 阿卜Coder QQ932696181 - * @date 2022-06-26 - */ -@RestController -@RequestMapping("/abuwx/wxuser") -public class AbucoderWxuserController extends BaseController -{ - @Autowired - private IAbucoderWxuserService abucoderWxuserService; - - /** - * 查询微信用户列表 - */ - @PreAuthorize("@ss.hasPermi('abuwx:wxuser:list')") - @GetMapping("/list") - public TableDataInfo list(AbucoderWxuser abucoderWxuser) - { - startPage(); - List list = abucoderWxuserService.selectAbucoderWxuserList(abucoderWxuser); - return getDataTable(list); - } - - /** - * 导出微信用户列表 - */ - @PreAuthorize("@ss.hasPermi('abuwx:wxuser:export')") - @Log(title = "微信用户", businessType = BusinessType.EXPORT) - @PostMapping("/export") - public void export(HttpServletResponse response, AbucoderWxuser abucoderWxuser) - { - List list = abucoderWxuserService.selectAbucoderWxuserList(abucoderWxuser); - ExcelUtil util = new ExcelUtil(AbucoderWxuser.class); - util.exportExcel(response, list, "微信用户数据"); - } - - /** - * 获取微信用户详细信息 - */ - @PreAuthorize("@ss.hasPermi('abuwx:wxuser:query')") - @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { - return AjaxResult.success(abucoderWxuserService.selectAbucoderWxuserById(id)); - } - - /** - * 新增微信用户 - */ - @PreAuthorize("@ss.hasPermi('abuwx:wxuser:add')") - @Log(title = "微信用户", businessType = BusinessType.INSERT) - @PostMapping - public AjaxResult add(@RequestBody AbucoderWxuser abucoderWxuser) - { - return toAjax(abucoderWxuserService.insertAbucoderWxuser(abucoderWxuser)); - } - - /** - * 修改微信用户 - */ - @PreAuthorize("@ss.hasPermi('abuwx:wxuser:edit')") - @Log(title = "微信用户", businessType = BusinessType.UPDATE) - @PutMapping - public AjaxResult edit(@RequestBody AbucoderWxuser abucoderWxuser) - { - return toAjax(abucoderWxuserService.updateAbucoderWxuser(abucoderWxuser)); - } - - /** - * 删除微信用户 - */ - @PreAuthorize("@ss.hasPermi('abuwx:wxuser:remove')") - @Log(title = "微信用户", businessType = BusinessType.DELETE) - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { - return toAjax(abucoderWxuserService.deleteAbucoderWxuserByIds(ids)); - } -} diff --git a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/domain/AbucoderWxuser.java b/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/domain/AbucoderWxuser.java deleted file mode 100644 index cec85c4..0000000 --- a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/domain/AbucoderWxuser.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.ruoyi.abuwx.domain; - -import com.ruoyi.common.annotation.Excel; -import com.ruoyi.common.core.domain.BaseEntity; -import lombok.Data; - -@Data -public class AbucoderWxuser extends BaseEntity -{ - private static final long serialVersionUID = 1L; - - /** ID */ - private Long id; - - /** 微信名称 */ - @Excel(name = "微信名称") - private String nickname; - - /** 头像 */ - @Excel(name = "头像") - private String avatar; - - /** OpenID */ - @Excel(name = "OpenID") - private String openid; - - /** 性别 */ - @Excel(name = "性别") - private Integer gender; -} diff --git a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/mapper/AbucoderWxuserMapper.java b/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/mapper/AbucoderWxuserMapper.java deleted file mode 100644 index d05d4f4..0000000 --- a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/mapper/AbucoderWxuserMapper.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.ruoyi.abuwx.mapper; - -import java.util.List; -import com.ruoyi.abuwx.domain.AbucoderWxuser; - -/** - * 微信用户Mapper接口 - * - * @author 阿卜Coder QQ932696181 - * @date 2022-06-26 - */ -public interface AbucoderWxuserMapper -{ - /** - * 查询微信用户 - * - * @param id 微信用户主键 - * @return 微信用户 - */ - public AbucoderWxuser selectAbucoderWxuserById(Long id); - - /** - * 查询微信用户列表 - * - * @param abucoderWxuser 微信用户 - * @return 微信用户集合 - */ - public List selectAbucoderWxuserList(AbucoderWxuser abucoderWxuser); - - /** - * 新增微信用户 - * - * @param abucoderWxuser 微信用户 - * @return 结果 - */ - public int insertAbucoderWxuser(AbucoderWxuser abucoderWxuser); - - /** - * 修改微信用户 - * - * @param abucoderWxuser 微信用户 - * @return 结果 - */ - public int updateAbucoderWxuser(AbucoderWxuser abucoderWxuser); - - /** - * 删除微信用户 - * - * @param id 微信用户主键 - * @return 结果 - */ - public int deleteAbucoderWxuserById(Long id); - - /** - * 批量删除微信用户 - * - * @param ids 需要删除的数据主键集合 - * @return 结果 - */ - public int deleteAbucoderWxuserByIds(Long[] ids); - - /** - * 通过OpenID查询微信用户信息 - * @param openid - * @return - */ - public AbucoderWxuser selectAbucoderWxuserOpenID(String openid); -} diff --git a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/service/IAbucoderWxuserService.java b/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/service/IAbucoderWxuserService.java deleted file mode 100644 index 7ceb1d3..0000000 --- a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/service/IAbucoderWxuserService.java +++ /dev/null @@ -1,68 +0,0 @@ -package com.ruoyi.abuwx.service; - -import java.util.List; -import com.ruoyi.abuwx.domain.AbucoderWxuser; - -/** - * 微信用户Service接口 - * - * @author 阿卜Coder QQ932696181 - * @date 2022-06-26 - */ -public interface IAbucoderWxuserService -{ - /** - * 查询微信用户 - * - * @param id 微信用户主键 - * @return 微信用户 - */ - public AbucoderWxuser selectAbucoderWxuserById(Long id); - - /** - * 查询微信用户列表 - * - * @param abucoderWxuser 微信用户 - * @return 微信用户集合 - */ - public List selectAbucoderWxuserList(AbucoderWxuser abucoderWxuser); - - /** - * 新增微信用户 - * - * @param abucoderWxuser 微信用户 - * @return 结果 - */ - public int insertAbucoderWxuser(AbucoderWxuser abucoderWxuser); - - /** - * 修改微信用户 - * - * @param abucoderWxuser 微信用户 - * @return 结果 - */ - public int updateAbucoderWxuser(AbucoderWxuser abucoderWxuser); - - /** - * 批量删除微信用户 - * - * @param ids 需要删除的微信用户主键集合 - * @return 结果 - */ - public int deleteAbucoderWxuserByIds(Long[] ids); - - /** - * 删除微信用户信息 - * - * @param id 微信用户主键 - * @return 结果 - */ - public int deleteAbucoderWxuserById(Long id); - - /** - * 通过OpenID查询微信用户信息 - * @param openid - * @return - */ - public AbucoderWxuser selectAbucoderWxuserOpenID(String openid); -} diff --git a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/service/impl/AbucoderWxuserServiceImpl.java b/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/service/impl/AbucoderWxuserServiceImpl.java deleted file mode 100644 index e5318e3..0000000 --- a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwx/service/impl/AbucoderWxuserServiceImpl.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.ruoyi.abuwx.service.impl; - -import java.util.List; -import com.ruoyi.common.utils.DateUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import com.ruoyi.abuwx.mapper.AbucoderWxuserMapper; -import com.ruoyi.abuwx.domain.AbucoderWxuser; -import com.ruoyi.abuwx.service.IAbucoderWxuserService; - -/** - * 微信用户Service业务层处理 - * - * @author 阿卜Coder QQ932696181 - * @date 2022-06-26 - */ -@Service -public class AbucoderWxuserServiceImpl implements IAbucoderWxuserService -{ - @Autowired - private AbucoderWxuserMapper abucoderWxuserMapper; - - /** - * 查询微信用户 - * - * @param id 微信用户主键 - * @return 微信用户 - */ - @Override - public AbucoderWxuser selectAbucoderWxuserById(Long id) - { - return abucoderWxuserMapper.selectAbucoderWxuserById(id); - } - - /** - * 查询微信用户列表 - * - * @param abucoderWxuser 微信用户 - * @return 微信用户 - */ - @Override - public List selectAbucoderWxuserList(AbucoderWxuser abucoderWxuser) - { - return abucoderWxuserMapper.selectAbucoderWxuserList(abucoderWxuser); - } - - /** - * 新增微信用户 - * - * @param abucoderWxuser 微信用户 - * @return 结果 - */ - @Override - public int insertAbucoderWxuser(AbucoderWxuser abucoderWxuser) - { - abucoderWxuser.setCreateTime(DateUtils.getNowDate()); - return abucoderWxuserMapper.insertAbucoderWxuser(abucoderWxuser); - } - - /** - * 修改微信用户 - * - * @param abucoderWxuser 微信用户 - * @return 结果 - */ - @Override - public int updateAbucoderWxuser(AbucoderWxuser abucoderWxuser) - { - abucoderWxuser.setUpdateTime(DateUtils.getNowDate()); - return abucoderWxuserMapper.updateAbucoderWxuser(abucoderWxuser); - } - - /** - * 批量删除微信用户 - * - * @param ids 需要删除的微信用户主键 - * @return 结果 - */ - @Override - public int deleteAbucoderWxuserByIds(Long[] ids) - { - return abucoderWxuserMapper.deleteAbucoderWxuserByIds(ids); - } - - /** - * 删除微信用户信息 - * - * @param id 微信用户主键 - * @return 结果 - */ - @Override - public int deleteAbucoderWxuserById(Long id) - { - return abucoderWxuserMapper.deleteAbucoderWxuserById(id); - } - - /** - * 通过OpenID查询微信用户信息 - * @param openid - * @return - */ - @Override - public AbucoderWxuser selectAbucoderWxuserOpenID(String openid) { - return abucoderWxuserMapper.selectAbucoderWxuserOpenID(openid); - } -} diff --git a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwxapi/WxLoginController.java b/ruoyi-abuwx/src/main/java/com/ruoyi/abuwxapi/WxLoginController.java deleted file mode 100644 index 6e7497e..0000000 --- a/ruoyi-abuwx/src/main/java/com/ruoyi/abuwxapi/WxLoginController.java +++ /dev/null @@ -1,129 +0,0 @@ -package com.ruoyi.abuwxapi; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson2.JSON; -import com.alibaba.fastjson2.JSONObject; -import com.ruoyi.abuwx.domain.AbucoderWxuser; -import com.ruoyi.abuwx.service.IAbucoderWxuserService; -import com.ruoyi.common.config.RuoYiConfig; -import com.ruoyi.common.core.domain.AjaxResult; -import com.ruoyi.common.utils.DateUtils; -import com.ruoyi.common.utils.file.FileUploadUtils; -import com.ruoyi.common.utils.file.FileUtils; -import com.ruoyi.common.utils.http.HttpUtils; -import com.ruoyi.framework.config.ServerConfig; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.util.StringUtils; -import org.springframework.web.bind.annotation.*; -import org.springframework.web.multipart.MultipartFile; - -@RestController -@RequestMapping("/wxapi/") -public class WxLoginController { - private static final Logger log = LoggerFactory.getLogger(WxLoginController.class); - @Autowired - private IAbucoderWxuserService iAbucoderWxuserService; - - @Autowired - private ServerConfig serverConfig; - - /** - * 你自己的微信小程序APPID - */ - - private final static String AppID = "你自己的微信小程序APPID"; - /** - * 你自己的微信APP密钥 - */ - private final static String AppSecret = "你自己的微信APP密钥"; - - /** - * 登录时获取的 code(微信官方提供的临时凭证) - * @param object - * @return - */ - @PostMapping("/wxlogin") - public AjaxResult wxLogin(@RequestBody JSONObject object){ - //微信官方提供的微信小程序登录授权时使用的URL地址 - String url = "https://api.weixin.qq.com/sns/jscode2session"; - log.info("微信登录,传入参数:"+object); - /** - * 拼接需要的参数 - * appid = AppID 你自己的微信小程序APPID - * js_code = AppSecret 你自己的微信APP密钥 - * grant_type=authorization_code = code 微信官方提供的临时凭证 - */ - String params = StrUtil.format("appid={}&secret={}&js_code={}&grant_type=authorization_code", AppID, AppSecret, object.get("code")); - //开始发起网络请求,若依管理系统自带网络请求工具,直接使用即可 - String res = HttpUtils.sendGet(url,params); - JSONObject jsonObject = JSON.parseObject(res); - String openid = (String) jsonObject.get("openid"); - if (StrUtil.isEmpty(openid)) { - return AjaxResult.error("未获取到openid"); - } - /**先通过openid来查询是否存在*/ - AbucoderWxuser abucoderWxuser = iAbucoderWxuserService.selectAbucoderWxuserOpenID(openid); - if (abucoderWxuser == null){ - /**如果不存在就插入到我们的数据库里*/ - AbucoderWxuser wxuser = new AbucoderWxuser(); - wxuser.setOpenid(openid); - wxuser.setCreateTime(DateUtils.getNowDate()); - iAbucoderWxuserService.insertAbucoderWxuser(wxuser); - /**返回结果集到前段*/ - return AjaxResult.success(wxuser); - }else { - /**返回结果集到前段*/ - return AjaxResult.success(abucoderWxuser); - } - } - - @PostMapping("/upload") - @ResponseBody - public AjaxResult uploadFile(MultipartFile file) throws Exception - { - System.out.println(file); - try - { - // 上传文件路径 - String filePath = RuoYiConfig.getUploadPath(); - // 上传并返回新文件名称 - String fileName = FileUploadUtils.upload(filePath, file); - String url = serverConfig.getUrl() + fileName; - AjaxResult ajax = AjaxResult.success(); - ajax.put("url", url); - ajax.put("fileName", fileName); - ajax.put("newFileName", FileUtils.getName(fileName)); - ajax.put("originalFilename", file.getOriginalFilename()); - return ajax; - } - catch (Exception e) - { - return AjaxResult.error(e.getMessage()); - } - } - - /** - * 保存昵称与头像信息到用户信息里 - * @param object - * @return - */ - @PostMapping("/saveUserInfo") - @ResponseBody - public AjaxResult saveUserInfo(@RequestBody JSONObject object){ - System.out.println(object); - AbucoderWxuser abucoderWxuser = iAbucoderWxuserService.selectAbucoderWxuserOpenID(String.valueOf(object.get("openid"))); - if (StringUtils.hasLength(String.valueOf(object.get("nickName")))){ - abucoderWxuser.setNickname(String.valueOf(object.get("nickName"))); - abucoderWxuser.setCreateBy(String.valueOf(object.get("nickName"))); - } - if (StringUtils.hasLength(String.valueOf(object.get("avatarUrl")))){ - abucoderWxuser.setAvatar(String.valueOf(object.get("avatarUrl"))); - } - abucoderWxuser.setUpdateTime(DateUtils.getNowDate()); - iAbucoderWxuserService.updateAbucoderWxuser(abucoderWxuser); - //返回前段需要的数据 - return AjaxResult.success(abucoderWxuser); - } - -} diff --git a/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderBannersMapper.xml b/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderBannersMapper.xml deleted file mode 100644 index b4dd303..0000000 --- a/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderBannersMapper.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - select id, banner_title, banner_url, banner_img, create_by, create_time, update_by, update_time, remark from abucoder_banners - - - - - - - - insert into abucoder_banners - - banner_title, - banner_url, - banner_img, - create_by, - create_time, - update_by, - update_time, - remark, - - - #{bannerTitle}, - #{bannerUrl}, - #{bannerImg}, - #{createBy}, - #{createTime}, - #{updateBy}, - #{updateTime}, - #{remark}, - - - - - update abucoder_banners - - banner_title = #{bannerTitle}, - banner_url = #{bannerUrl}, - banner_img = #{bannerImg}, - create_by = #{createBy}, - create_time = #{createTime}, - update_by = #{updateBy}, - update_time = #{updateTime}, - remark = #{remark}, - - where id = #{id} - - - - delete from abucoder_banners where id = #{id} - - - - delete from abucoder_banners where id in - - #{id} - - - \ No newline at end of file diff --git a/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderItemsMapper.xml b/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderItemsMapper.xml deleted file mode 100644 index 944b6dd..0000000 --- a/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderItemsMapper.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - - select id, item_name, item_desc, item_content, create_by, create_time, update_by, update_time, remark from abucoder_items - - - - - - - - insert into abucoder_items - - item_name, - item_desc, - item_content, - create_by, - create_time, - update_by, - update_time, - remark, - - - #{itemName}, - #{itemDesc}, - #{itemContent}, - #{createBy}, - #{createTime}, - #{updateBy}, - #{updateTime}, - #{remark}, - - - - - update abucoder_items - - item_name = #{itemName}, - item_desc = #{itemDesc}, - item_content = #{itemContent}, - create_by = #{createBy}, - create_time = #{createTime}, - update_by = #{updateBy}, - update_time = #{updateTime}, - remark = #{remark}, - - where id = #{id} - - - - delete from abucoder_items where id = #{id} - - - - delete from abucoder_items where id in - - #{id} - - - \ No newline at end of file diff --git a/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderProgramsMapper.xml b/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderProgramsMapper.xml deleted file mode 100644 index c65334d..0000000 --- a/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderProgramsMapper.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - - - - - - - - - - - - select id, program_name, program_tag, program_img, program_content, create_by, create_time, update_by, update_time, remark from abucoder_programs - - - - - - - - insert into abucoder_programs - - program_name, - program_tag, - program_img, - program_content, - create_by, - create_time, - update_by, - update_time, - remark, - - - #{programName}, - #{programTag}, - #{programImg}, - #{programContent}, - #{createBy}, - #{createTime}, - #{updateBy}, - #{updateTime}, - #{remark}, - - - - - update abucoder_programs - - program_name = #{programName}, - program_tag = #{programTag}, - program_img = #{programImg}, - program_content = #{programContent}, - create_by = #{createBy}, - create_time = #{createTime}, - update_by = #{updateBy}, - update_time = #{updateTime}, - remark = #{remark}, - - where id = #{id} - - - - delete from abucoder_programs where id = #{id} - - - - delete from abucoder_programs where id in - - #{id} - - - \ No newline at end of file diff --git a/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderWxappConfigMapper.xml b/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderWxappConfigMapper.xml deleted file mode 100644 index 8e365ee..0000000 --- a/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderWxappConfigMapper.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - - - - - - - select id, appid, app_secret, state, create_by, create_time, update_by, update_time, remark from abucoder_wxapp_config - - - - - - - - - insert into abucoder_wxapp_config - - appid, - app_secret, - state, - create_by, - create_time, - update_by, - update_time, - remark, - - - #{appid}, - #{appSecret}, - #{state}, - #{createBy}, - #{createTime}, - #{updateBy}, - #{updateTime}, - #{remark}, - - - - - update abucoder_wxapp_config - - appid = #{appid}, - app_secret = #{appSecret}, - state = #{state}, - create_by = #{createBy}, - create_time = #{createTime}, - update_by = #{updateBy}, - update_time = #{updateTime}, - remark = #{remark}, - - where id = #{id} - - - - delete from abucoder_wxapp_config where id = #{id} - - - - delete from abucoder_wxapp_config where id in - - #{id} - - - \ No newline at end of file diff --git a/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderWxuserMapper.xml b/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderWxuserMapper.xml deleted file mode 100644 index 7232fbe..0000000 --- a/ruoyi-abuwx/src/main/resources/mapper/abuwx/AbucoderWxuserMapper.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - - - - - - - - - - - - select id, nickname, avatar, openid, gender, create_by, create_time, update_by, update_time, remark from abucoder_wxuser - - - - - - - - - insert into abucoder_wxuser - - nickname, - avatar, - openid, - gender, - create_by, - create_time, - update_by, - update_time, - remark, - - - #{nickname}, - #{avatar}, - #{openid}, - #{gender}, - #{createBy}, - #{createTime}, - #{updateBy}, - #{updateTime}, - #{remark}, - - - - - update abucoder_wxuser - - nickname = #{nickname}, - avatar = #{avatar}, - openid = #{openid}, - gender = #{gender}, - create_by = #{createBy}, - create_time = #{createTime}, - update_by = #{updateBy}, - update_time = #{updateTime}, - remark = #{remark}, - - where id = #{id} - - - - delete from abucoder_wxuser where id = #{id} - - - - delete from abucoder_wxuser where id in - - #{id} - - - \ No newline at end of file