| | |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "userid", value = "ç»å½äººID", dataType = "Integer", paramType = "query", required = false, example = "sys_login") |
| | | @ApiImplicitParam(name = "userid", value = "ç»å½äººID", dataType = "String", paramType = "query", required = false, example = "sys_login") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(int userid) { |
| | | public ResponseMsg<Integer> selectCount(String userid) { |
| | | try { |
| | | int count = loginService.selectCount(userid); |
| | | |
| | |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "userid", value = "ç»å½äººID", dataType = "Integer", paramType = "query", example = "sys_login"), |
| | | @ApiImplicitParam(name = "userid", value = "ç»å½äººID", dataType = "String", paramType = "query", example = "sys_login"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<LoginEntity>> selectByPage(int userid, Integer pageSize, Integer pageIndex) { |
| | | public ResponseMsg<List<LoginEntity>> selectByPage(String userid, Integer pageSize, Integer pageIndex) { |
| | | try { |
| | | if (pageSize < 1 || pageIndex < 1) { |
| | | return fail("æ¯é¡µé¡µæ°æå页æ°å°äº1", null); |
| | |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "userid", value = "ç»å½äººID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "userid", value = "ç»å½äººID", dataType = "String", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<LoginEntity>> selectByPageAndCount(int userid, Integer pageSize, Integer pageIndex) { |
| | | public ResponseMsg<List<LoginEntity>> selectByPageAndCount(String userid, Integer pageSize, Integer pageIndex) { |
| | | try { |
| | | if (pageSize < 1 || pageIndex < 1) { |
| | | return fail("æ¯é¡µé¡µæ°æå页æ°å°äº1", null); |
| | |
| | | @ApiImplicitParam(name = "ids", value = "åå
¸IDéå", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteLogins") |
| | | public ResponseMsg<Integer> deleteLogins(List<Integer> ids) { |
| | | public ResponseMsg<Integer> deleteLogins(@RequestParam List<Integer> ids) { |
| | | try { |
| | | if (ids == null || ids.isEmpty()) { |
| | | return fail("idæ°ç»ä¸è½ä¸ºç©º", -1); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.lf.server.controller.data; |
| | | |
| | | import com.lf.server.controller.BaseController; |
| | | import com.lf.server.entity.all.ResponseMsg; |
| | | import com.lf.server.entity.data.LoginEntity; |
| | | import com.lf.server.entity.data.OperateEntity; |
| | | import com.lf.server.service.data.OperateService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æä½æ¥å¿ |
| | | * @author SWS |
| | | * @date 2022-09.28 |
| | | */ |
| | | @Api(tags = "æä½æ¥å¿") |
| | | @RestController |
| | | @RequestMapping("/operate") |
| | | public class OperateController extends BaseController { |
| | | @Autowired |
| | | OperateService operateService; |
| | | |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "userid", value = "ç»å½äººID", dataType = "String", paramType = "query", required = false, example = "sys_operate") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(String userid) { |
| | | try { |
| | | int count = operateService.selectCount(userid); |
| | | |
| | | return success(count); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), -1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "userid", value = "ç»å½äººID", dataType = "String", paramType = "query", example = "sys_operate"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<OperateEntity>> selectByPage(String userid, Integer pageSize, Integer pageIndex) { |
| | | try { |
| | | if (pageSize < 1 || pageIndex < 1) { |
| | | return fail("æ¯é¡µé¡µæ°æå页æ°å°äº1", null); |
| | | } |
| | | List<OperateEntity> rs = operateService.selectByPage(userid, pageSize, pageSize * (pageIndex - 1)); |
| | | return success(rs); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "userid", value = "ç»å½äººID", dataType = "String", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<OperateEntity>> selectByPageAndCount(String userid, Integer pageSize, Integer pageIndex) { |
| | | try { |
| | | if (pageSize < 1 || pageIndex < 1) { |
| | | return fail("æ¯é¡µé¡µæ°æå页æ°å°äº1", null); |
| | | } |
| | | |
| | | int count = operateService.selectCount(userid); |
| | | if (count == 0) { |
| | | return success(0, null); |
| | | } |
| | | |
| | | List<OperateEntity> rs = operateService.selectByPage(userid, pageSize, pageSize * (pageIndex - 1)); |
| | | |
| | | return success(count, rs); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "æå
¥åå
¸") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "operateEntity", value = "åå
¸å®ä½ç±»", dataType = "com.lf.server.entity.data.OperateEntity", paramType = "body", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertOperate", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertOperate(OperateEntity operateEntity) { |
| | | try { |
| | | int count = operateService.insertOperate(operateEntity); |
| | | |
| | | return success(count); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), -1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "æå
¥å¤æ¡åå
¸") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "operateEntity", value = "åå
¸å®ä½ç±»éå", dataType = "List<OperateEntity>", paramType = "body", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertOperates", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertOperates(@RequestBody List<OperateEntity> operateEntity) { |
| | | try { |
| | | int count = operateService.insertOperates(operateEntity); |
| | | |
| | | return success(count); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), -1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤ä¸æ¡åå
¸") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "åå
¸ID", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteOperate") |
| | | public ResponseMsg<Integer> deleteOperate(int id) { |
| | | try { |
| | | int count = operateService.deleteOperate(id); |
| | | |
| | | return success(count); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), -1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "å é¤å¤æ¡åå
¸") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "åå
¸IDéå", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteOperates") |
| | | public ResponseMsg<Integer> deleteOperates(@RequestParam List<Integer> ids) { |
| | | try { |
| | | if (ids == null || ids.isEmpty()) { |
| | | return fail("idæ°ç»ä¸è½ä¸ºç©º", -1); |
| | | } |
| | | int count = operateService.deleteOperates(ids); |
| | | return success(count); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), -1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡åå
¸") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "operateEntity", value = "åå
¸IDéå", dataType = "OperateEntity", paramType = "body", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateOperate", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> updateOperate(OperateEntity operateEntity) { |
| | | try { |
| | | int count = operateService.updateOperate(operateEntity); |
| | | |
| | | return success(count); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), -1); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢åå
¸") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "åå
¸ID", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectOperate") |
| | | public ResponseMsg<OperateEntity> selectOperate(int id) { |
| | | try { |
| | | OperateEntity operateEntity = operateService.selectOperate(id); |
| | | |
| | | return success(operateEntity); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "æ¥è¯¢ææåå
¸") |
| | | @GetMapping(value = "/selectOperateAll") |
| | | public ResponseMsg<List<OperateEntity>> selectOperateAll() { |
| | | try { |
| | | List<OperateEntity> list = operateService.selectOperateAll(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | } |
| | |
| | | package com.lf.server.entity.data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.sql.Timestamp; |
| | | |
| | | /** |
| | | * æä½æ¥å¿è¡¨ |
| | | * æä½æ¥å¿ |
| | | * @author sws |
| | | * @date 2022-09-28 |
| | | */ |
| | | public class OperateEntity implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -2335232554888606229L; |
| | | |
| | | private int id; |
| | | |
| | | private String modular; |
| | | |
| | | private String url; |
| | | |
| | | private String ip; |
| | | |
| | | private int type; |
| | | |
| | | private int userid; |
| | | |
| | | private Timestamp optime; |
| | | |
| | | public int getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(int id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getModular() { |
| | | return modular; |
| | | } |
| | | |
| | | public void setModular(String modular) { |
| | | this.modular = modular; |
| | | } |
| | | |
| | | public String getUrl() { |
| | | return url; |
| | | } |
| | | |
| | | public void setUrl(String url) { |
| | | this.url = url; |
| | | } |
| | | |
| | | public String getIp() { |
| | | return ip; |
| | | } |
| | | |
| | | public void setIp(String ip) { |
| | | this.ip = ip; |
| | | } |
| | | |
| | | public int getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(int type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public int getUserid() { |
| | | return userid; |
| | | } |
| | | |
| | | public void setUserid(int userid) { |
| | | this.userid = userid; |
| | | } |
| | | |
| | | public Timestamp getOptime() { |
| | | return optime; |
| | | } |
| | | |
| | | public void setOptime(Timestamp optime) { |
| | | this.optime = optime; |
| | | } |
| | | } |
| | |
| | | * @param userid ç»å½äººID |
| | | * @return è®°å½æ° |
| | | */ |
| | | public Integer selectCount(int userid); |
| | | public Integer selectCount(String userid); |
| | | |
| | | /** |
| | | * æ ¹æ®è¡¨åå页æ¥è¯¢ |
| | |
| | | * @param offset åç§»é |
| | | * @return å表 |
| | | */ |
| | | public List<LoginEntity> selectByPage(int userid, Integer limit, Integer offset); |
| | | public List<LoginEntity> selectByPage(String userid, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * æ·»å æ°æ® |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.lf.server.mapper.data; |
| | | |
| | | import com.lf.server.entity.data.OperateEntity; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æä½æ¥å¿ |
| | | * @author sws |
| | | * @date 2022-09-28 |
| | | */ |
| | | @Mapper |
| | | @ResponseBody |
| | | public interface OperateMapper { |
| | | /** |
| | | * æ ¹æ®è¡¨åæ¥è¯¢è®°å½æ° |
| | | * |
| | | * @param userid ç»å½äººID |
| | | * @return è®°å½æ° |
| | | */ |
| | | public Integer selectCount(String userid); |
| | | |
| | | /** |
| | | * æ ¹æ®è¡¨åå页æ¥è¯¢ |
| | | * |
| | | * @param userid 表å |
| | | * @param limit è®°å½è¡¨ |
| | | * @param offset åç§»é |
| | | * @return å表 |
| | | */ |
| | | public List<OperateEntity> selectByPage(String userid, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * æ·»å æ°æ® |
| | | * |
| | | * @param operateEntity |
| | | * @return |
| | | */ |
| | | public Integer insertOperate(OperateEntity operateEntity); |
| | | |
| | | /** |
| | | * æ¹éæ·»å |
| | | * |
| | | * @param operateEntity |
| | | * @return |
| | | */ |
| | | public Integer insertOperates(List<OperateEntity> operateEntity); |
| | | |
| | | /** |
| | | * åªé¤æ°æ® |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public Integer deleteOperate(int id); |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | public Integer deleteOperates(List<Integer> ids); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param operateEntity |
| | | * @return |
| | | */ |
| | | public Integer updateOperate(OperateEntity operateEntity); |
| | | |
| | | /** |
| | | * æ¥è¯¢åæ¡æ°æ® |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public OperateEntity selectOperate(int id); |
| | | |
| | | /** |
| | | * æ¥è¯¢å
¨é¨æ°æ® |
| | | * |
| | | * @return |
| | | */ |
| | | public List<OperateEntity> selectOperateAll(); |
| | | |
| | | } |
| | |
| | | LoginMapper loginMapper; |
| | | |
| | | @Override |
| | | public Integer selectCount(int userid) { |
| | | public Integer selectCount(String userid) { |
| | | return loginMapper.selectCount(userid); |
| | | } |
| | | |
| | | @Override |
| | | public List<LoginEntity> selectByPage(int userid, Integer limit, Integer offset) { |
| | | public List<LoginEntity> selectByPage(String userid, Integer limit, Integer offset) { |
| | | return loginMapper.selectByPage(userid, limit, offset); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.lf.server.service.data; |
| | | |
| | | import com.lf.server.entity.data.OperateEntity; |
| | | import com.lf.server.mapper.data.OperateMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æä½æ¥å¿ |
| | | * @author sws |
| | | * @date 2022-09-28 |
| | | */ |
| | | @Service |
| | | public class OperateService implements OperateMapper { |
| | | @Autowired |
| | | OperateMapper operateMapper; |
| | | |
| | | @Override |
| | | public Integer selectCount(String userid) { |
| | | return operateMapper.selectCount(userid); |
| | | } |
| | | |
| | | @Override |
| | | public List<OperateEntity> selectByPage(String userid, Integer limit, Integer offset) { |
| | | return operateMapper.selectByPage(userid,limit,offset); |
| | | } |
| | | |
| | | @Override |
| | | public Integer insertOperate(OperateEntity operateEntity) { |
| | | return operateMapper.insertOperate(operateEntity); |
| | | } |
| | | |
| | | @Override |
| | | public Integer insertOperates(List<OperateEntity> operateEntity) { |
| | | return operateMapper.insertOperates(operateEntity); |
| | | } |
| | | |
| | | @Override |
| | | public Integer deleteOperate(int id) { |
| | | return operateMapper.deleteOperate(id); |
| | | } |
| | | |
| | | @Override |
| | | public Integer deleteOperates(List<Integer> ids) { |
| | | return operateMapper.deleteOperates(ids); |
| | | } |
| | | |
| | | @Override |
| | | public Integer updateOperate(OperateEntity operateEntity) { |
| | | return operateMapper.updateOperate(operateEntity); |
| | | } |
| | | |
| | | @Override |
| | | public OperateEntity selectOperate(int id) { |
| | | return operateMapper.selectOperate(id); |
| | | } |
| | | |
| | | @Override |
| | | public List<OperateEntity> selectOperateAll() { |
| | | return operateMapper.selectOperateAll(); |
| | | } |
| | | } |
| | |
| | | insert into lf.sys_login |
| | | (appid,ip,type,status,browser,userid,optime) |
| | | values |
| | | (#{appid},#{ip},#{type},#{status},#{browser},#{userid},#{optime}); |
| | | (#{appid},#{ip},#{type},#{status},#{browser},#{userid},now()); |
| | | </insert> |
| | | |
| | | <insert id="insertLogins" > |
| | |
| | | (appid,ip,type,status,browser,userid,optime) |
| | | values |
| | | <foreach collection="list" item="item" index="index" separator="," > |
| | | (#{item.appid},#{item.ip},#{item.type},#{item.status},#{item.browser},#{item.userid},#{item.optime}) |
| | | (#{item.appid},#{item.ip},#{item.type},#{item.status},#{item.browser},#{item.userid},now()) |
| | | </foreach> |
| | | </insert> |
| | | |
| | |
| | | </delete> |
| | | |
| | | <update id="updateLogin"> |
| | | update lf.sys_login set appid=#{appid},ip=#{ip},type=#{type},status=#{status},browser=#{browser},userid=#{userid},optime=#{optime} where id=#{id} |
| | | update lf.sys_login set appid=#{appid},ip=#{ip},type=#{type},status=#{status},browser=#{browser},userid=#{userid},optime=now() where id=#{id} |
| | | </update> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.lf.server.mapper.data.OperateMapper"> |
| | | |
| | | <!-- ç»è®¡è¡æ° --> |
| | | <select id="selectCount" resultType="java.lang.Integer" parameterType="java.lang.String"> |
| | | select count(*) from lf.sys_operate |
| | | <where> |
| | | <if test="userid != null"> |
| | | userid = #{userid} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <!-- å页æ¥è¯¢ --> |
| | | <select id="selectByPage" resultType="com.lf.server.entity.data.OperateEntity"> |
| | | select * from lf.sys_operate |
| | | <where> |
| | | <if test="userid != null"> |
| | | userid = #{userid} |
| | | </if> |
| | | </where> |
| | | limit #{limit} offset #{offset} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectOperateAll" resultType="com.lf.server.entity.data.OperateEntity"> |
| | | select * from lf.sys_operate |
| | | </select> |
| | | |
| | | <select id="selectOperate" resultType="com.lf.server.entity.data.OperateEntity"> |
| | | select * from lf.sys_operate where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertOperate" parameterType="com.lf.server.entity.data.OperateEntity"> |
| | | insert into lf.sys_operate |
| | | (modular,url,ip,type,userid,optime) |
| | | values |
| | | (#{modular},#{url},#{ip},#{type},#{userid},now()); |
| | | </insert> |
| | | |
| | | <insert id="insertOperates" > |
| | | insert into lf.sys_operate |
| | | (modular,url,ip,type,userid,optime) |
| | | values |
| | | <foreach collection="list" item="item" index="index" separator="," > |
| | | (#{item.modular},#{item.url},#{item.ip},#{item.type},#{item.userid},now()) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | <delete id="deleteOperate" > |
| | | delete from lf.sys_operate where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteOperates" > |
| | | delete from lf.sys_operate where id in |
| | | <foreach item="ids" collection="list" index="index" open="(" |
| | | separator="," close=")"> |
| | | #{ids} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <update id="updateOperate"> |
| | | update lf.sys_operate set modular=#{modular},url=#{url},ip=#{ip},type=#{type},userid=#{userid},optime=now() where id=#{id} |
| | | </update> |
| | | </mapper> |