| | |
| | | return success(0, null); |
| | | } |
| | | |
| | | List<StyleEntity> rs = styleService.selectByPage(name, pageSize, pageSize * pageIndex); |
| | | List<StyleEntity> rs = styleService.selectByPage(name, pageSize, pageSize * (pageIndex - 1)); |
| | | |
| | | return success(count, rs); |
| | | } catch (Exception ex) { |
| | |
| | | @SysLog() |
| | | @ApiOperation(value = "插入字典") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "StyleEntity", value = "字典实体类", dataType = "List<StyleEntity>", paramType = "body", example = "") |
| | | @ApiImplicitParam(name = "styleEntity", value = "字典实体类", dataType = "com.lf.server.entity.data.StyleEntity", paramType = "body", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertStyle", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertStyle(@RequestBody StyleEntity styleEntity) { |
| | |
| | | |
| | | private Timestamp updateTime; |
| | | |
| | | private String depName; |
| | | |
| | | private String dirName; |
| | | |
| | | private String bak; |
| | | |
| | | public int getId() { |
| | |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getDepName() { |
| | | return depName; |
| | | } |
| | | |
| | | public void setDepName(String depName) { |
| | | this.depName = depName; |
| | | } |
| | | |
| | | public String getDirName() { |
| | | return dirName; |
| | | } |
| | | |
| | | public void setDirName(String dirName) { |
| | | this.dirName = dirName; |
| | | } |
| | | |
| | | public String getBak() { |
| | | return bak; |
| | | } |
| | |
| | | |
| | | <!-- 分页查询 --> |
| | | <select id="selectByPage" resultMap="resultMap" resultType="com.lf.server.entity.data.StyleEntity"> |
| | | select * from lf.sys_style |
| | | select a.*,b.name as depName,c.name as dirName from lf.sys_style a |
| | | inner join lf.sys_dep b on a.depid = b.order_num |
| | | inner join lf.sys_dir c on a.dirid = c.id |
| | | <where> |
| | | <if test="name != null"> |
| | | name like #{name} |
| | | a.name like #{name} |
| | | </if> |
| | | </where> |
| | | order by id |