Commit 10de1d88 by Suvalue

Service添加

parent 8d2963a6
package com.bsoft.api.common.base;
public class RequestResult {
Integer code;
String msg;
Object data;
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
public RequestResult(Integer code, String msg, Object data) {
this.code = code;
this.msg = msg;
this.data = data;
}
}
package com.bsoft.api.common.enums;
public enum RequestResultType {
SUCCESS(1, "成功"),FAILURE(0, "失败"),;
private int value;
private String desc;
RequestResultType(int value, String desc){
this.value = value;
this.desc = desc;
}
public int getValue() {
return value;
}
public String getDesc() {
return desc;
}
}
package com.bsoft.api.controller;
import com.bsoft.api.common.Result;
import com.bsoft.api.common.base.RequestResult;
import com.bsoft.api.common.enums.RequestResultType;
import com.bsoft.api.model.DicDim;
import com.bsoft.api.model.respmodel.ListPage;
import com.bsoft.api.service.DicDimService;
import io.swagger.annotations.Api;
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.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = {"维度操作"})
@RequestMapping("dim")
@RestController
public class DicDimController {
@Autowired
private DicDimService dicDimService;
@GetMapping("list")
public Object list(){
List<DicDim> list = dicDimService.findAll();
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("listpage")
public Object listpage(Integer pageSize, Integer pageIndex){
List<DicDim> list = dicDimService.findAll();
ListPage<DicDim> listPage = new ListPage(list, pageSize, pageIndex, 0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Integer id){
dicDimService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(DicDim dicDim){
dicDimService.add(dicDim);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("update")
public Object update(DicDim dicDim){
dicDimService.update(dicDim);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Integer id){
dicDimService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
}
package com.bsoft.api.controller;
import com.bsoft.api.common.base.RequestResult;
import com.bsoft.api.common.enums.RequestResultType;
import com.bsoft.api.model.DicOrg;
import com.bsoft.api.model.respmodel.ListPage;
import com.bsoft.api.service.DicOrgService;
import io.swagger.annotations.Api;
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.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = {"机构"})
@RequestMapping("org")
@RestController
public class DicOrgController {
@Autowired
private DicOrgService dicOrgService;
@GetMapping("list")
public Object list(){
List<DicOrg> list = dicOrgService.findAll();
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("listpage")
public Object listpage(Integer pageSize, Integer pageIndex){
List<DicOrg> list = dicOrgService.findAll();
ListPage<DicOrg> listPage = new ListPage(list, pageSize, pageIndex, 0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Integer id){
dicOrgService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(DicOrg dicOrg){
dicOrgService.add(dicOrg);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("update")
public Object update(DicOrg dicOrg){
dicOrgService.update(dicOrg);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Integer id){
dicOrgService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
}
package com.bsoft.api.controller;
import com.bsoft.api.common.base.RequestResult;
import com.bsoft.api.common.enums.RequestResultType;
import com.bsoft.api.model.SysMenu;
import com.bsoft.api.model.respmodel.ListPage;
import com.bsoft.api.service.SysMenuService;
import io.swagger.annotations.Api;
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.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = {"菜单"})
@RequestMapping("menu")
@RestController
public class SysMenuController {
@Autowired
private SysMenuService sysMenuService;
@GetMapping("list")
public Object list(){
List<SysMenu> list = sysMenuService.findAll();
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("listpage")
public Object listpage(Integer pageSize, Integer pageIndex){
List<SysMenu> list = sysMenuService.findAll();
ListPage<SysMenu> listPage = new ListPage(list, pageSize, pageIndex, 0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Integer id){
sysMenuService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(SysMenu sysMenu){
sysMenuService.add(sysMenu);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("update")
public Object update(SysMenu sysMenu){
sysMenuService.update(sysMenu);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Integer id){
sysMenuService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
}
package com.bsoft.api.controller;
import com.bsoft.api.common.base.RequestResult;
import com.bsoft.api.common.enums.RequestResultType;
import com.bsoft.api.model.SysRole;
import com.bsoft.api.model.respmodel.ListPage;
import com.bsoft.api.service.SysRoleService;
import io.swagger.annotations.Api;
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.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = {"角色"})
@RequestMapping("role")
@RestController
public class SysRoleController {
@Autowired
private SysRoleService sysRoleService;
@GetMapping("list")
public Object list(){
List<SysRole> list = sysRoleService.findAll();
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("listpage")
public Object listpage(Integer pageSize, Integer pageIndex){
List<SysRole> list = sysRoleService.findAll();
ListPage<SysRole> listPage = new ListPage(list, pageSize, pageIndex, 0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Integer id){
sysRoleService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(SysRole sysRole){
sysRoleService.add(sysRole);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("update")
public Object update(SysRole sysRole){
sysRoleService.update(sysRole);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Integer id){
sysRoleService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
}
package com.bsoft.api.controller;
import com.bsoft.api.common.base.RequestResult;
import com.bsoft.api.common.enums.RequestResultType;
import com.bsoft.api.model.SysRoleMenuRs;
import com.bsoft.api.model.respmodel.ListPage;
import com.bsoft.api.service.SysRoleMenuRsService;
import com.bsoft.api.service.SysUserOrgRsService;
import io.swagger.annotations.Api;
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.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = {"角色菜单关系"})
@RequestMapping("roleMenu")
@RestController
public class SysRoleMenuRsController {
@Autowired
private SysRoleMenuRsService sysRoleMenuRsService;
@GetMapping("list")
public Object list(){
List<SysRoleMenuRs> list = sysRoleMenuRsService.findAll();
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("listpage")
public Object listpage(Integer pageSize, Integer pageIndex){
List<SysRoleMenuRs> list = sysRoleMenuRsService.findAll();
ListPage<SysRoleMenuRs> listPage = new ListPage(list, pageSize, pageIndex, 0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Integer id){
sysRoleMenuRsService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(SysRoleMenuRs sysRoleMenuRs){
sysRoleMenuRsService.add(sysRoleMenuRs);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("update")
public Object update(SysRoleMenuRs sysRoleMenuRs){
sysRoleMenuRsService.update(sysRoleMenuRs);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Integer id){
sysRoleMenuRsService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
}
package com.bsoft.api.controller;
import com.bsoft.api.common.base.RequestResult;
import com.bsoft.api.common.enums.RequestResultType;
import com.bsoft.api.model.SysRoleMenuRs;
import com.bsoft.api.model.SysUserMenuRs;
import com.bsoft.api.model.respmodel.ListPage;
import com.bsoft.api.service.SysUserMenuRsService;
import io.swagger.annotations.Api;
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.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = {"用户菜单关系"})
@RequestMapping("userMenu")
@RestController
public class SysUserMenuRsController {
@Autowired
private SysUserMenuRsService sysUserMenuRsService;
@GetMapping("list")
public Object list(){
List<SysUserMenuRs> list = sysUserMenuRsService.findAll();
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("listpage")
public Object listpage(Integer pageSize, Integer pageIndex){
List<SysUserMenuRs> list = sysUserMenuRsService.findAll();
ListPage<SysUserMenuRs> listPage = new ListPage(list, pageSize, pageIndex, 0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Integer id){
sysUserMenuRsService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(SysUserMenuRs sysUserMenuRs){
sysUserMenuRsService.add(sysUserMenuRs);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("update")
public Object update(SysUserMenuRs sysUserMenuRs){
sysUserMenuRsService.update(sysUserMenuRs);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Integer id){
sysUserMenuRsService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
}
package com.bsoft.api.controller;
import com.bsoft.api.common.base.RequestResult;
import com.bsoft.api.common.enums.RequestResultType;
import com.bsoft.api.model.SysUserOrgRs;
import com.bsoft.api.model.respmodel.ListPage;
import com.bsoft.api.service.SysUserOrgRsService;
import io.swagger.annotations.Api;
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.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = {"用户机构关系"})
@RequestMapping("userOrg")
@RestController
public class SysUserOrgController {
@Autowired
private SysUserOrgRsService sysUserOrgRsService;
@GetMapping("list")
public Object list(){
List<SysUserOrgRs> list = sysUserOrgRsService.findAll();
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("listpage")
public Object listpage(Integer pageSize, Integer pageIndex){
List<SysUserOrgRs> list = sysUserOrgRsService.findAll();
ListPage<SysUserOrgRs> listPage = new ListPage(list, pageSize, pageIndex, 0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Integer id){
sysUserOrgRsService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(SysUserOrgRs sysUserOrgRs){
sysUserOrgRsService.add(sysUserOrgRs);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("update")
public Object update(SysUserOrgRs sysUserOrgRs){
sysUserOrgRsService.update(sysUserOrgRs);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Integer id){
sysUserOrgRsService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
}
package com.bsoft.api.controller;
import com.bsoft.api.common.base.RequestResult;
import com.bsoft.api.common.enums.RequestResultType;
import com.bsoft.api.model.SysUserRoleRs;
import com.bsoft.api.model.respmodel.ListPage;
import com.bsoft.api.service.SysUserRoleRsService;
import io.swagger.annotations.Api;
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.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = {"用户角色关系"})
@RequestMapping("userRole")
@RestController
public class SysUserRoleRsController {
@Autowired
private SysUserRoleRsService sysUserRoleRsService;
@GetMapping("list")
public Object list(){
List<SysUserRoleRs> list = sysUserRoleRsService.findAll();
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("listpage")
public Object listpage(Integer pageSize, Integer pageIndex){
List<SysUserRoleRs> list = sysUserRoleRsService.findAll();
ListPage<SysUserRoleRs> listPage = new ListPage(list, pageSize, pageIndex, 0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Integer id){
sysUserRoleRsService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(SysUserRoleRs sysUserRoleRs){
sysUserRoleRsService.add(sysUserRoleRs);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("update")
public Object update(SysUserRoleRs sysUserRoleRs){
sysUserRoleRsService.update(sysUserRoleRs);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Integer id){
sysUserRoleRsService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
}
......@@ -9,7 +9,7 @@ public interface SysUserMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
int deleteByPrimaryKey(BigDecimal id);
......@@ -17,7 +17,7 @@ public interface SysUserMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
int insert(SysUser record);
......@@ -25,7 +25,7 @@ public interface SysUserMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
SysUser selectByPrimaryKey(BigDecimal id);
......@@ -33,7 +33,7 @@ public interface SysUserMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
List<SysUser> selectAll();
......@@ -41,7 +41,7 @@ public interface SysUserMapper {
* This method was generated by MyBatis Generator.
* This method corresponds to the database table LL.SYS_USER
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
int updateByPrimaryKey(SysUser record);
}
\ No newline at end of file
......@@ -9,7 +9,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.ID
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
private BigDecimal id;
......@@ -18,7 +18,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.CREATE_DATE
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
private Date createDate;
......@@ -27,7 +27,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.CREATE_USERID
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
private BigDecimal createUserid;
......@@ -36,7 +36,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.STATE
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
private BigDecimal state;
......@@ -45,7 +45,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.USER_CODE
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
private Object userCode;
......@@ -54,7 +54,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.USER_NAME
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
private Object userName;
......@@ -63,7 +63,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.PASSWORD
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
private Object password;
......@@ -72,7 +72,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.IDCARD
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
private Object idcard;
......@@ -81,7 +81,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.SEX
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
private Object sex;
......@@ -90,7 +90,7 @@ public class SysUser {
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.MOBILE
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
private Object mobile;
......@@ -100,7 +100,7 @@ public class SysUser {
*
* @return the value of LL.SYS_USER.ID
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public BigDecimal getId() {
return id;
......@@ -112,7 +112,7 @@ public class SysUser {
*
* @param id the value for LL.SYS_USER.ID
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public void setId(BigDecimal id) {
this.id = id;
......@@ -124,7 +124,7 @@ public class SysUser {
*
* @return the value of LL.SYS_USER.CREATE_DATE
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public Date getCreateDate() {
return createDate;
......@@ -136,7 +136,7 @@ public class SysUser {
*
* @param createDate the value for LL.SYS_USER.CREATE_DATE
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public void setCreateDate(Date createDate) {
this.createDate = createDate;
......@@ -148,7 +148,7 @@ public class SysUser {
*
* @return the value of LL.SYS_USER.CREATE_USERID
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public BigDecimal getCreateUserid() {
return createUserid;
......@@ -160,7 +160,7 @@ public class SysUser {
*
* @param createUserid the value for LL.SYS_USER.CREATE_USERID
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public void setCreateUserid(BigDecimal createUserid) {
this.createUserid = createUserid;
......@@ -172,7 +172,7 @@ public class SysUser {
*
* @return the value of LL.SYS_USER.STATE
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public BigDecimal getState() {
return state;
......@@ -184,7 +184,7 @@ public class SysUser {
*
* @param state the value for LL.SYS_USER.STATE
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public void setState(BigDecimal state) {
this.state = state;
......@@ -196,7 +196,7 @@ public class SysUser {
*
* @return the value of LL.SYS_USER.USER_CODE
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public Object getUserCode() {
return userCode;
......@@ -208,7 +208,7 @@ public class SysUser {
*
* @param userCode the value for LL.SYS_USER.USER_CODE
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public void setUserCode(Object userCode) {
this.userCode = userCode;
......@@ -220,7 +220,7 @@ public class SysUser {
*
* @return the value of LL.SYS_USER.USER_NAME
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public Object getUserName() {
return userName;
......@@ -232,7 +232,7 @@ public class SysUser {
*
* @param userName the value for LL.SYS_USER.USER_NAME
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public void setUserName(Object userName) {
this.userName = userName;
......@@ -244,7 +244,7 @@ public class SysUser {
*
* @return the value of LL.SYS_USER.PASSWORD
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public Object getPassword() {
return password;
......@@ -256,7 +256,7 @@ public class SysUser {
*
* @param password the value for LL.SYS_USER.PASSWORD
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public void setPassword(Object password) {
this.password = password;
......@@ -268,7 +268,7 @@ public class SysUser {
*
* @return the value of LL.SYS_USER.IDCARD
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public Object getIdcard() {
return idcard;
......@@ -280,7 +280,7 @@ public class SysUser {
*
* @param idcard the value for LL.SYS_USER.IDCARD
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public void setIdcard(Object idcard) {
this.idcard = idcard;
......@@ -292,7 +292,7 @@ public class SysUser {
*
* @return the value of LL.SYS_USER.SEX
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public Object getSex() {
return sex;
......@@ -304,7 +304,7 @@ public class SysUser {
*
* @param sex the value for LL.SYS_USER.SEX
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public void setSex(Object sex) {
this.sex = sex;
......@@ -316,7 +316,7 @@ public class SysUser {
*
* @return the value of LL.SYS_USER.MOBILE
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public Object getMobile() {
return mobile;
......@@ -328,7 +328,7 @@ public class SysUser {
*
* @param mobile the value for LL.SYS_USER.MOBILE
*
* @mbg.generated Mon Oct 21 11:03:43 CST 2019
* @mbg.generated Mon Oct 21 15:22:33 CST 2019
*/
public void setMobile(Object mobile) {
this.mobile = mobile;
......
package com.bsoft.api.model.respmodel;
import java.util.List;
public class ListPage<T> {
int totalCount;
int totalPageCount;
int curPageIndex;
int pageSize;
List<T> listData;
public ListPage() {
}
public ListPage(List<T> list, Integer pageSize, Integer pageIndex, int cost) {
totalCount = list.size();
this.pageSize = pageSize == null ? totalCount : pageSize;
curPageIndex = pageIndex == null ? 1 : pageIndex;
totalPageCount = (int) Math.ceil((double) totalCount / this.pageSize);
int startIndex = this.pageSize * (curPageIndex - 1) - cost;
int endIndex = this.pageSize * curPageIndex + cost;
listData = list.subList(startIndex > totalCount ? totalCount : startIndex < 0 ? 0 : startIndex, endIndex < totalCount ? endIndex : totalCount);
}
public ListPage(List<T> list, Integer pageSize, Integer pageIndex) {
this(list, pageSize, pageIndex, 1);
}
public int getTotalCount() {
return totalCount;
}
public void setTotalCount(int totalCount) {
this.totalCount = totalCount;
}
public int getTotalPageCount() {
return totalPageCount;
}
public void setTotalPageCount(int totalPageCount) {
this.totalPageCount = totalPageCount;
}
public int getCurPageIndex() {
return curPageIndex;
}
public void setCurPageIndex(int curPageIndex) {
this.curPageIndex = curPageIndex;
}
public int getPageSize() {
return pageSize;
}
public void setPageSize(int pageSize) {
this.pageSize = pageSize;
}
public List<T> getListData() {
return listData;
}
public void setListData(List<T> listData) {
this.listData = listData;
}
}
package com.bsoft.api.service;
import com.bsoft.api.model.DicDim;
import java.util.List;
public interface DicDimService extends ServiceBase<DicDim> {
}
package com.bsoft.api.service;
import com.bsoft.api.model.DicOrg;
public interface DicOrgService extends ServiceBase<DicOrg> {
}
package com.bsoft.api.service.Impl;
import com.bsoft.api.mapper.DicDimMapper;
import com.bsoft.api.model.DicDim;
import com.bsoft.api.service.DicDimService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
@Service
public class DicDimServiceImpl implements DicDimService {
@Resource
private DicDimMapper dicDimMapper;
@Override
public int add(DicDim dicDim) {
return dicDimMapper.insert(dicDim);
}
@Override
public List<DicDim> findAll() {
return dicDimMapper.selectAll();
}
@Override
public DicDim find(int id) {
return dicDimMapper.selectByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int delete(int id) {
return dicDimMapper.deleteByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int logicDelete(int id) {
return 0;
}
@Override
public int update(DicDim dicDim) {
return dicDimMapper.updateByPrimaryKey(dicDim);
}
}
package com.bsoft.api.service.Impl;
import com.bsoft.api.mapper.SysMenuMapper;
import com.bsoft.api.model.SysMenu;
import com.bsoft.api.service.SysMenuService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
@Service
public class SysMenuServiceImpl implements SysMenuService {
@Resource
private SysMenuMapper sysMenuMapper;
@Override
public int add(SysMenu sysMenu) {
return sysMenuMapper.insert(sysMenu);
}
@Override
public List<SysMenu> findAll() {
return sysMenuMapper.selectAll();
}
@Override
public SysMenu find(int id) {
return sysMenuMapper.selectByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int delete(int id) {
return sysMenuMapper.deleteByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int logicDelete(int id) {
return 0;
}
@Override
public int update(SysMenu sysMenu) {
return sysMenuMapper.updateByPrimaryKey(sysMenu);
}
}
package com.bsoft.api.service.Impl;
import com.bsoft.api.mapper.SysRoleMenuRsMapper;
import com.bsoft.api.model.SysRoleMenuRs;
import com.bsoft.api.service.SysRoleMenuRsService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
@Service
public class SysRoleMenuRsServiceImpl implements SysRoleMenuRsService {
@Resource
private SysRoleMenuRsMapper sysRoleMenuRsMapper;
@Override
public int add(SysRoleMenuRs sysRoleMenuRs) {
return sysRoleMenuRsMapper.insert(sysRoleMenuRs);
}
@Override
public List<SysRoleMenuRs> findAll() {
return sysRoleMenuRsMapper.selectAll();
}
@Override
public SysRoleMenuRs find(int id) {
return sysRoleMenuRsMapper.selectByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int delete(int id) {
return sysRoleMenuRsMapper.deleteByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int logicDelete(int id) {
return 0;
}
@Override
public int update(SysRoleMenuRs sysRoleMenuRs) {
return sysRoleMenuRsMapper.updateByPrimaryKey(sysRoleMenuRs);
}
}
package com.bsoft.api.service.Impl;
import com.bsoft.api.mapper.SysRoleMapper;
import com.bsoft.api.model.DicOrg;
import com.bsoft.api.model.SysRole;
import com.bsoft.api.service.SysRoleService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
@Service
public class SysRoleServiceImpl implements SysRoleService {
@Resource
private SysRoleMapper sysRoleMapper;
@Override
public int add(SysRole sysRole) {
return sysRoleMapper.insert(sysRole);
}
@Override
public List<SysRole> findAll() {
return sysRoleMapper.selectAll();
}
@Override
public SysRole find(int id) {
return sysRoleMapper.selectByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int delete(int id) {
return sysRoleMapper.deleteByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int logicDelete(int id) {
return 0;
}
@Override
public int update(SysRole sysRole) {
return sysRoleMapper.updateByPrimaryKey(sysRole);
}
}
package com.bsoft.api.service.Impl;
import com.bsoft.api.mapper.SysUserMenuRsMapper;
import com.bsoft.api.model.SysUserMenuRs;
import com.bsoft.api.service.SysUserMenuRsService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
@Service
public class SysUserMenuRsServiceImpl implements SysUserMenuRsService {
@Resource
private SysUserMenuRsMapper sysUserMenuRsMapper;
@Override
public int add(SysUserMenuRs sysUserMenuRs) {
return sysUserMenuRsMapper.insert(sysUserMenuRs);
}
@Override
public List<SysUserMenuRs> findAll() {
return sysUserMenuRsMapper.selectAll();
}
@Override
public SysUserMenuRs find(int id) {
return sysUserMenuRsMapper.selectByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int delete(int id) {
return sysUserMenuRsMapper.deleteByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int logicDelete(int id) {
return 0;
}
@Override
public int update(SysUserMenuRs sysUserMenuRs) {
return sysUserMenuRsMapper.updateByPrimaryKey(sysUserMenuRs);
}
}
package com.bsoft.api.service.Impl;
import com.bsoft.api.mapper.SysUserOrgRsMapper;
import com.bsoft.api.model.SysUserOrgRs;
import com.bsoft.api.service.SysUserOrgRsService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
@Service
public class SysUserOrgRsServiceImpl implements SysUserOrgRsService {
@Resource
private SysUserOrgRsMapper sysUserOrgRsMapper;
@Override
public int add(SysUserOrgRs sysUserOrgRs) {
return sysUserOrgRsMapper.insert(sysUserOrgRs);
}
@Override
public List<SysUserOrgRs> findAll() {
return sysUserOrgRsMapper.selectAll();
}
@Override
public SysUserOrgRs find(int id) {
return sysUserOrgRsMapper.selectByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int delete(int id) {
return sysUserOrgRsMapper.deleteByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int logicDelete(int id) {
return 0;
}
@Override
public int update(SysUserOrgRs sysUserRoleRs) {
return sysUserOrgRsMapper.updateByPrimaryKey(sysUserRoleRs);
}
}
package com.bsoft.api.service.Impl;
import com.bsoft.api.mapper.SysUserRoleRsMapper;
import com.bsoft.api.model.SysMenu;
import com.bsoft.api.model.SysUserRoleRs;
import com.bsoft.api.service.SysUserRoleRsService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
@Service
public class SysUserRoleServiceImpl implements SysUserRoleRsService {
@Resource
private SysUserRoleRsMapper sysUserRoleRsMapper;
@Override
public int add(SysUserRoleRs sysUserRoleRs) {
return sysUserRoleRsMapper.insert(sysUserRoleRs);
}
@Override
public List<SysUserRoleRs> findAll() {
return sysUserRoleRsMapper.selectAll();
}
@Override
public SysUserRoleRs find(int id) {
return sysUserRoleRsMapper.selectByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int delete(int id) {
return sysUserRoleRsMapper.deleteByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int logicDelete(int id) {
return 0;
}
@Override
public int update(SysUserRoleRs sysUserRoleRs) {
return sysUserRoleRsMapper.updateByPrimaryKey(sysUserRoleRs);
}
}
......@@ -15,6 +15,7 @@ public class UserServiceImpl implements UserService {
@Override
public SysUser findByLoginName(String loginName) {
return sysUserMapper.selectByCode(loginName);
// return sysUserMapper.selectByCode(loginName);
return null;
}
}
package com.bsoft.api.service.Impl;
import com.bsoft.api.mapper.DicOrgMapper;
import com.bsoft.api.model.DicOrg;
import com.bsoft.api.service.DicOrgService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
@Service
public class dicOrgServiceImpl implements DicOrgService {
@Resource
private DicOrgMapper dicOrgMapper;
@Override
public int add(DicOrg dicOrg) {
return dicOrgMapper.insert(dicOrg);
}
@Override
public List<DicOrg> findAll() {
return dicOrgMapper.selectAll();
}
@Override
public DicOrg find(int id) {
return dicOrgMapper.selectByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int delete(int id) {
return dicOrgMapper.deleteByPrimaryKey(BigDecimal.valueOf(id));
}
@Override
public int logicDelete(int id) {
return 0;
}
@Override
public int update(DicOrg dicOrg) {
return dicOrgMapper.updateByPrimaryKey(dicOrg);
}
}
package com.bsoft.api.service;
import java.util.List;
public interface ServiceBase<T> {
/**
* 新增
* @param t
* @return
*/
int add(T t) ;
/**
* 查询所有
* @return
*/
List<T> findAll();
/**
* 根据id查询
* @param id
* @return
*/
T find(int id);
/**
* 物理删除
* @param id
* @return
*/
int delete(int id);
/**
* 逻辑删除
* @param id
* @return
*/
int logicDelete(int id);
/**
* 更新
* @param t
* @return
*/
int update(T t);
}
package com.bsoft.api.service;
import com.bsoft.api.model.SysMenu;
public interface SysMenuService extends ServiceBase<SysMenu> {
}
package com.bsoft.api.service;
import com.bsoft.api.model.SysRoleMenuRs;
public interface SysRoleMenuRsService extends ServiceBase<SysRoleMenuRs> {
}
package com.bsoft.api.service;
import com.bsoft.api.model.SysRole;
public interface SysRoleService extends ServiceBase<SysRole> {
}
package com.bsoft.api.service;
import com.bsoft.api.model.SysUserMenuRs;
public interface SysUserMenuRsService extends ServiceBase<SysUserMenuRs> {
}
package com.bsoft.api.service;
import com.bsoft.api.model.SysUserOrgRs;
public interface SysUserOrgRsService extends ServiceBase<SysUserOrgRs> {
}
package com.bsoft.api.service;
import com.bsoft.api.model.SysUserRoleRs;
public interface SysUserRoleRsService extends ServiceBase<SysUserRoleRs> {
}
......@@ -5,7 +5,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Oct 21 11:03:43 CST 2019.
This element was generated on Mon Oct 21 15:22:33 CST 2019.
-->
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
......@@ -22,7 +22,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Oct 21 11:03:43 CST 2019.
This element was generated on Mon Oct 21 15:22:33 CST 2019.
-->
delete from LL.SYS_USER
where ID = #{id,jdbcType=DECIMAL}
......@@ -31,7 +31,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Oct 21 11:03:43 CST 2019.
This element was generated on Mon Oct 21 15:22:33 CST 2019.
-->
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SYS_USER_ID.nextval from dual
......@@ -47,7 +47,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Oct 21 11:03:43 CST 2019.
This element was generated on Mon Oct 21 15:22:33 CST 2019.
-->
update LL.SYS_USER
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
......@@ -65,7 +65,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Oct 21 11:03:43 CST 2019.
This element was generated on Mon Oct 21 15:22:33 CST 2019.
-->
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_CODE, USER_NAME, PASSWORD, IDCARD,
SEX, MOBILE
......@@ -76,7 +76,7 @@
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Mon Oct 21 11:03:43 CST 2019.
This element was generated on Mon Oct 21 15:22:33 CST 2019.
-->
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_CODE, USER_NAME, PASSWORD, IDCARD,
SEX, MOBILE
......
......@@ -41,6 +41,54 @@
<!-- 主键生成方式 -->
<generatedKey column="id" sqlStatement="select SEQ_SYS_USER_ID.nextval from dual" identity="true" />
</table>
<table tableName="DIC_DIM" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_DIC_DIM_ID.nextval from dual" identity="true" />
</table>
<table tableName="DIC_IND" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_DIC_IND_ID.nextval from dual" identity="true" />
</table>
<table tableName="DIC_ORG" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_DIC_ORG_ID.nextval from dual" identity="true" />
</table>
<table tableName="SER_ BLOCK_IND_RS" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_SER_ BLOCK_IND_RS_ID.nextval from dual" identity="true" />
</table>
<table tableName="SER_BLOCK" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_SER_BLOCK_ID.nextval from dual" identity="true" />
</table>
<table tableName="SER_PAGE" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_SER_PAGE_ID.nextval from dual" identity="true" />
</table>
<table tableName="SER_PAGE_BLOCK_RS" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_SER_PAGE_BLOCK_RS_ID.nextval from dual" identity="true" />
</table>
<table tableName="SER_PAGE_DIM_RS" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_SER_PAGE_DIM_RS_ID.nextval from dual" identity="true" />
</table>
<table tableName="SYS_MENU" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_SYS_MENU_ID.nextval from dual" identity="true" />
</table>
<table tableName="SYS_ORG" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_SYS_ORG_ID.nextval from dual" identity="true" />
</table>
<table tableName="SYS_PROJECT" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_SYS_PROJECT_ID.nextval from dual" identity="true" />
</table>
<table tableName="SYS_ROLE" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_SYS_ROLE_ID.nextval from dual" identity="true" />
</table>
<table tableName="SYS_ROLE_MENU_RS" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_SYS_ROLE_MENU_RS_ID.nextval from dual" identity="true" />
</table>
<table tableName="SYS_USER_MENU_RS" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_SYS_USER_MENU_RS_ID.nextval from dual" identity="true" />
</table>
<table tableName="SYS_USER_ORG_RS" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_SYS_USER_ORG_RS_ID.nextval from dual" identity="true" />
</table>
<table tableName="SYS_USER_ROLE_RS" schema="ll" >
<generatedKey column="id" sqlStatement="select SEQ_SYS_USER_ROLE_RS_ID.nextval from dual" identity="true" />
</table>
</context>
<!--<context id="sqlserver" targetRuntime="MyBatis3Simple" defaultModelType="flat">-->
<!--<property enName="beginningDelimiter" value="["/>-->
......
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