Commit 70660722 by Suvalue

数据库切换到MySql

parent 0073b8a0
package com.bsoft.api.common.enums;
public enum DimType {
DATABASE(1,"需要从数据获取数据"),
NODATA(0,"无所获取");
DimType(int value,String desc) {
this.value = value;
this.desc = desc;
}
private int value;
private String desc;
public int getValue() {
return value;
}
public String getDesc() {
return desc;
}
}
......@@ -18,11 +18,11 @@ public class CurrentUserMethodArgumentResolver implements HandlerMethodArgumentR
}
@Override
public Object resolveArgument(MethodParameter methodParameter, ModelAndViewContainer modelAndViewContainer,
NativeWebRequest nativeWebRequest, WebDataBinderFactory webDataBinderFactory) {
public Object resolveArgument(MethodParameter methodParameter,ModelAndViewContainer modelAndViewContainer,
NativeWebRequest nativeWebRequest,WebDataBinderFactory webDataBinderFactory) {
String token = nativeWebRequest.getHeader(Constants.TOKEN_KEY);
if(TokenUtil.checkToken(token)){
SysUser user = (SysUser) RedisUtil.get(token);
SysUser user = (SysUser)RedisUtil.get(token);
return user.getId();
}
return null;
......
......@@ -10,40 +10,43 @@ public class TokenUtil {
/**
* 获取token,并将token存入redis
*
* @param secret 密码
* @param user 用户信息
* @return token
*/
public static String getToken(String secret, SysUser user){
public static String getToken(String secret,SysUser user) {
String time = String.valueOf(System.currentTimeMillis());
String token = JWTUtil.create(secret, time, String.valueOf(user.getId()));
RedisUtil.set(token, user, TOKEN_TIME_OUT);
String token = JWTUtil.create(secret,time,String.valueOf(user.getId()));
RedisUtil.set(token,user,TOKEN_TIME_OUT);
return token;
}
/**
* 刷新token,并将旧token设置过期时间为5分钟
*
* @param oldToken 旧的token
* @return 新的token
*/
public static String refresh(String oldToken){
public static String refresh(String oldToken) {
String token = null;
SysUser user = (SysUser) RedisUtil.get(oldToken);
SysUser user = (SysUser)RedisUtil.get(oldToken);
if(checkToken(oldToken)){
RedisUtil.expire(oldToken, OLD_TOKEN_DURATION);
token = getToken(user.getPassword(), user);
RedisUtil.expire(oldToken,OLD_TOKEN_DURATION);
token = getToken(user.getPassword(),user);
}
return token;
}
/**
* 校验token
*
* @param token token
* @return 返回校验结果
*/
public static boolean checkToken(String token){
SysUser user = (SysUser) RedisUtil.get(token);
boolean result = user != null && JWTUtil.verifier(token, user.getPassword());
public static boolean checkToken(String token) {
SysUser user = (SysUser)RedisUtil.get(token);
boolean result = user != null && JWTUtil.verifier(token,user.getPassword());
if(result){
RedisUtil.expire(token,TOKEN_TIME_OUT);
}
......
......@@ -14,9 +14,9 @@ public interface DicDimMapper {
List<DicDim> selectAll();
int updateByPrimaryKey(DicDim record);
List<DicDim> selectByPageid(@Param("pageID") Integer pageID);
List<DicDim> selectByPageCode(@Param("pageCode") String pageCode);
int updateByPrimaryKey(DicDim record);
}
\ No newline at end of file
......@@ -15,9 +15,9 @@ public interface DicOrgMapper {
List<DicOrg> selectAll();
List<DicOrg> selectByUser(@Param("userId") Long userId);
int updateByPrimaryKey(DicOrg record);
List<DicOrg> selectByUser(@Param("userId") Long userId);
List<SerDepartment> selectDeptByUser(@Param("userId") Long userId,@Param("orgId") Long orgId);
}
\ No newline at end of file
......@@ -3,23 +3,23 @@ package com.bsoft.api.mapper;
import com.bsoft.api.model.SerDiseaseDocRs;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
import java.util.List;
public interface SerDiseaseDocRsMapper {
int deleteByPrimaryKey(Long id);
int deleteByPrimaryKey(BigDecimal id);
int insert(SerDiseaseDocRs record);
SerDiseaseDocRs selectByPrimaryKey(Long id);
SerDiseaseDocRs selectByPrimaryKey(BigDecimal id);
List<SerDiseaseDocRs> selectAll();
int updateByPrimaryKey(SerDiseaseDocRs record);
List<SerDiseaseDocRs> selectByCode(@Param("docCode") String docCode,@Param("mdcCode") String mdcCode,
@Param("deptCode") String deptCode,@Param("date") String date);
List<SerDiseaseDocRs> selectByRelation(@Param("docCode") String docCode,@Param("listMdcCode") String[] listMdcCode,
@Param("deptCode") String deptCode,@Param("date") String date);
int updateByPrimaryKey(SerDiseaseDocRs record);
}
\ No newline at end of file
......@@ -7,18 +7,13 @@ import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface SerDiseaseMapper {
int deleteByPrimaryKey(Long id);
int insert(SerDisease record);
SerDisease selectByPrimaryKey(Long id);
List<SerDisease> selectAll();
SerDisease selectByCode(@Param("code") String code,@Param("date") String date,@Param("docCode") String docCode,
@Param("deptCode") String deptCode);
List<SerDisease> selectAll();
List<SerDisease> selectByMdcName(@Param("date") String date,@Param("mdcName") String mdcName,
@Param("docCode") String docCode,@Param("deptCode") String deptCode);
......@@ -33,7 +28,4 @@ public interface SerDiseaseMapper {
List<DiseaseLevel> selectSonById(@Param("date") String date,@Param("diseaseId") Integer diseaseId,
@Param("docCode") String docCode,@Param("deptCode") String deptCode);
int updateByPrimaryKey(SerDisease record);
}
\ No newline at end of file
......@@ -15,7 +15,7 @@ public interface SerDoctorMapper {
List<SerDoctor> selectAll();
List<SerDoctor> selectDoctor(@Param("dept") String dept);
int updateByPrimaryKey(SerDoctor record);
List<SerDoctor> selectDoctor(@Param("dept") String dept);
}
\ No newline at end of file
package com.bsoft.api.mapper;
import com.bsoft.api.model.SerPageBlockRs;
import org.apache.ibatis.annotations.Param;
import java.util.List;
......
package com.bsoft.api.mapper;
import com.bsoft.api.model.SerPageDimRs;
import java.util.List;
public interface SerPageDimRsMapper {
int deleteByPrimaryKey(Long id);
int insert(SerPageDimRs record);
SerPageDimRs selectByPrimaryKey(Long id);
List<SerPageDimRs> selectAll();
int updateByPrimaryKey(SerPageDimRs record);
}
\ No newline at end of file
package com.bsoft.api.mapper;
import com.bsoft.api.model.SerPageField;
import java.math.BigDecimal;
import java.util.List;
public interface SerPageFieldMapper {
int deleteByPrimaryKey(BigDecimal id);
int insert(SerPageField record);
SerPageField selectByPrimaryKey(BigDecimal id);
List<SerPageField> selectAll();
int updateByPrimaryKey(SerPageField record);
}
\ No newline at end of file
......@@ -17,7 +17,7 @@ public interface SerPageMapper {
int updateByPrimaryKey(SerPage record);
List<SerPage> selectByCodeAndDim(@Param("pageCode") Integer pageCode, @Param("inField") String inField, @Param("dimCount") int dimCount);
List<SerPage> selectByCodeAndDim(@Param("pageCode") Integer pageCode,@Param("inField") String inField,@Param("dimCount") int dimCount);
List<SerPage> selectByCodeAndDimList(@Param("pageCode") Integer pageCode, @Param("inFields") Set<String> inFields, @Param("dimCount") int dimCount);
List<SerPage> selectByCodeAndDimList(@Param("pageCode") Integer pageCode,@Param("inFields") Set<String> inFields,@Param("dimCount") int dimCount);
}
\ No newline at end of file
package com.bsoft.api.mapper;
import com.bsoft.api.model.SerPageProjFieldRs;
import java.math.BigDecimal;
import java.util.List;
public interface SerPageProjFieldRsMapper {
int deleteByPrimaryKey(BigDecimal id);
int insert(SerPageProjFieldRs record);
SerPageProjFieldRs selectByPrimaryKey(BigDecimal id);
List<SerPageProjFieldRs> selectAll();
int updateByPrimaryKey(SerPageProjFieldRs record);
}
\ No newline at end of file
package com.bsoft.api.mapper;
import com.bsoft.api.model.SerPageProj;
import java.math.BigDecimal;
import java.util.List;
public interface SerPageProjMapper {
int deleteByPrimaryKey(BigDecimal id);
int insert(SerPageProj record);
SerPageProj selectByPrimaryKey(BigDecimal id);
List<SerPageProj> selectAll();
int updateByPrimaryKey(SerPageProj record);
}
\ No newline at end of file
......@@ -5,20 +5,13 @@ import com.bsoft.api.model.respmodel.SummaryNew;
import com.bsoft.api.model.respmodel.SummaryValue;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
import java.util.List;
public interface SerPageProjValueMapper {
int deleteByPrimaryKey(BigDecimal id);
int insert(SerPageProjValue record);
SerPageProjValue selectByPrimaryKey(BigDecimal id);
List<SerPageProjValue> selectAll();
int updateByPrimaryKey(SerPageProjValue record);
List<SummaryNew> selectDept(@Param("date") Integer date,@Param("page") Integer page);
List<SummaryValue> selectValue(@Param("date") Integer date,@Param("page") Integer page,
......
package com.bsoft.api.mapper;
import com.bsoft.api.model.SerProjValueHistory;
import java.util.List;
public interface SerProjValueHistoryMapper {
int insert(SerProjValueHistory record);
List<SerProjValueHistory> selectAll();
int copyValue();
}
\ No newline at end of file
......@@ -2,6 +2,7 @@ package com.bsoft.api.mapper;
import com.bsoft.api.model.SysMenu;
import com.bsoft.api.model.respmodel.SysMenuList;
import org.apache.ibatis.annotations.Param;
import java.util.List;
......@@ -16,5 +17,5 @@ public interface SysMenuMapper {
int updateByPrimaryKey(SysMenu record);
List<SysMenuList> selectMenuByUser(Long userId);
List<SysMenuList> selectMenuByUser(@Param("userId") Long userId);
}
\ No newline at end of file
package com.bsoft.api.mapper;
import com.bsoft.api.model.SysOrg;
import java.util.List;
public interface SysOrgMapper {
int deleteByPrimaryKey(Long id);
int insert(SysOrg record);
SysOrg selectByPrimaryKey(Long id);
List<SysOrg> selectAll();
int updateByPrimaryKey(SysOrg record);
}
\ No newline at end of file
......@@ -2,6 +2,7 @@ package com.bsoft.api.mapper;
import com.bsoft.api.model.SysRole;
import com.bsoft.api.model.SysUserRoleRs;
import java.util.List;
public interface SysUserRoleRsMapper {
......
......@@ -5,11 +5,17 @@ import java.util.Date;
public class DicDim {
private Long id;
private Date createDate;
private Long createUserid;
private Short state;
private String dimName;
private String dimField;
private Long dimType;
private Short dimType;
public Long getId() {
return id;
......@@ -19,6 +25,30 @@ public class DicDim {
this.id = id;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Long getCreateUserid() {
return createUserid;
}
public void setCreateUserid(Long createUserid) {
this.createUserid = createUserid;
}
public Short getState() {
return state;
}
public void setState(Short state) {
this.state = state;
}
public String getDimName() {
return dimName;
}
......@@ -35,21 +65,11 @@ public class DicDim {
this.dimField = dimField;
}
public Long getDimType() {
public Short getDimType() {
return dimType;
}
public void setDimType(Long dimType) {
public void setDimType(Short dimType) {
this.dimType = dimType;
}
@Override
public String toString() {
return "DicDim{" +
"id=" + id +
", dimName='" + dimName + '\'' +
", dimField='" + dimField + '\'' +
", dimType=" + dimType +
'}';
}
}
\ No newline at end of file
......@@ -9,7 +9,7 @@ public class DicInd {
private Long createUserid;
private Short state;
private Long state;
private String indCode;
......@@ -19,10 +19,14 @@ public class DicInd {
private Short computeMode;
private String columnType;
private String execSql;
private String describe;
private String checkSql;
public Long getId() {
return id;
}
......@@ -47,11 +51,11 @@ public class DicInd {
this.createUserid = createUserid;
}
public Short getState() {
public Long getState() {
return state;
}
public void setState(Short state) {
public void setState(Long state) {
this.state = state;
}
......@@ -87,6 +91,14 @@ public class DicInd {
this.computeMode = computeMode;
}
public String getColumnType() {
return columnType;
}
public void setColumnType(String columnType) {
this.columnType = columnType;
}
public String getExecSql() {
return execSql;
}
......@@ -103,19 +115,11 @@ public class DicInd {
this.describe = describe;
}
@Override
public String toString() {
return "DicInd{" +
"id=" + id +
", createDate=" + createDate +
", createUserid=" + createUserid +
", state=" + state +
", indCode='" + indCode + '\'' +
", indName='" + indName + '\'' +
", indField='" + indField + '\'' +
", computeMode=" + computeMode +
", execSql='" + execSql + '\'' +
", describe='" + describe + '\'' +
'}';
public String getCheckSql() {
return checkSql;
}
public void setCheckSql(String checkSql) {
this.checkSql = checkSql;
}
}
\ No newline at end of file
......@@ -5,6 +5,12 @@ import java.util.Date;
public class DicOrg {
private Long id;
private Date createDate;
private Long createUserid;
private Short state;
private String orgCode;
private String orgName;
......@@ -29,6 +35,30 @@ public class DicOrg {
this.id = id;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Long getCreateUserid() {
return createUserid;
}
public void setCreateUserid(Long createUserid) {
this.createUserid = createUserid;
}
public Short getState() {
return state;
}
public void setState(Short state) {
this.state = state;
}
public String getOrgCode() {
return orgCode;
}
......@@ -92,19 +122,4 @@ public class DicOrg {
public void setParentId(Long parentId) {
this.parentId = parentId;
}
@Override
public String toString() {
return "DicOrg{" +
"id=" + id +
", orgCode='" + orgCode + '\'' +
", orgName='" + orgName + '\'' +
", orgNo='" + orgNo + '\'' +
", orgShortName='" + orgShortName + '\'' +
", orgGroup='" + orgGroup + '\'' +
", orgType='" + orgType + '\'' +
", orgAddress='" + orgAddress + '\'' +
", parentId=" + parentId +
'}';
}
}
\ No newline at end of file
......@@ -72,17 +72,4 @@ public class SerBlock {
public void setReturnType(Short returnType) {
this.returnType = returnType;
}
@Override
public String toString() {
return "SerBlock{" +
"id=" + id +
", createDate=" + createDate +
", createUserid=" + createUserid +
", state=" + state +
", blockCode='" + blockCode + '\'' +
", blockName='" + blockName + '\'' +
", returnType=" + returnType +
'}';
}
}
\ No newline at end of file
......@@ -62,36 +62,4 @@ public class SerDimValue {
public void setDimId(Long dimId) {
this.dimId = dimId;
}
@Override
public String toString() {
return "SerDimValue{" +
"id=" + id +
", orgId=" + orgId +
", itemName='" + itemName + '\'' +
", itemValue='" + itemValue + '\'' +
", date=" + date +
", dimId=" + dimId +
'}';
}
public enum Dim_Type{
DATABASE(1, "需要从数据获取数据"),NODATA(0, "无所获取"),;
Dim_Type(int value, String desc){
this.value = value;
this.desc = desc;
}
private int value;
private String desc;
public int getValue() {
return value;
}
public String getDesc() {
return desc;
}
}
}
\ No newline at end of file
......@@ -6,6 +6,12 @@ import java.util.Date;
public class SerDisease {
private BigDecimal id;
private Date createDate;
private BigDecimal createUserid;
private BigDecimal state;
private String mdcCode;
private String mdcName;
......@@ -22,6 +28,8 @@ public class SerDisease {
private String orgName;
private String parentCode;
public BigDecimal getId() {
return id;
}
......@@ -30,6 +38,30 @@ public class SerDisease {
this.id = id;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public BigDecimal getCreateUserid() {
return createUserid;
}
public void setCreateUserid(BigDecimal createUserid) {
this.createUserid = createUserid;
}
public BigDecimal getState() {
return state;
}
public void setState(BigDecimal state) {
this.state = state;
}
public String getMdcCode() {
return mdcCode;
}
......@@ -94,18 +126,11 @@ public class SerDisease {
this.orgName = orgName;
}
@Override
public String toString() {
return "SerDisease{" +
"id=" + id +
", mdcCode='" + mdcCode + '\'' +
", mdcName='" + mdcName + '\'' +
", date=" + date +
", mdcNum=" + mdcNum +
", parentId=" + parentId +
", level=" + level +
", orgId=" + orgId +
", orgName='" + orgName + '\'' +
'}';
public String getParentCode() {
return parentCode;
}
public void setParentCode(String parentCode) {
this.parentCode = parentCode;
}
}
\ No newline at end of file
......@@ -82,18 +82,4 @@ public class SerDiseaseDocRs {
public void setDeptName(String deptName) {
this.deptName = deptName;
}
@Override
public String toString() {
return "SerDiseaseDocRs{" +
"id=" + id +
", orgId=" + orgId +
", docCode='" + docCode + '\'' +
", docName='" + docName + '\'' +
", mdcCode='" + mdcCode + '\'' +
", date=" + date +
", deptCode='" + deptCode + '\'' +
", deptName='" + deptName + '\'' +
'}';
}
}
\ No newline at end of file
......@@ -62,16 +62,4 @@ public class SerPage {
public void setPageName(String pageName) {
this.pageName = pageName;
}
@Override
public String toString() {
return "SerPage{" +
"id=" + id +
", createDate=" + createDate +
", createUserid=" + createUserid +
", state=" + state +
", pageCode='" + pageCode + '\'' +
", pageName='" + pageName + '\'' +
'}';
}
}
\ No newline at end of file
......@@ -17,14 +17,6 @@ public class SerPageBlockRs {
private String whereClause;
public String getWhereClause() {
return whereClause;
}
public void setWhereClause(String whereClause) {
this.whereClause = whereClause;
}
public Long getId() {
return id;
}
......@@ -73,16 +65,11 @@ public class SerPageBlockRs {
this.pageId = pageId;
}
@Override
public String toString() {
return "SerPageBlockRs{" +
"id=" + id +
", createDate=" + createDate +
", createUserid=" + createUserid +
", state=" + state +
", blockId=" + blockId +
", pageId=" + pageId +
", whereClause='" + whereClause + '\'' +
'}';
public String getWhereClause() {
return whereClause;
}
public void setWhereClause(String whereClause) {
this.whereClause = whereClause;
}
}
\ No newline at end of file
package com.bsoft.api.model;
import java.util.Date;
public class SerPageDimRs {
private Long id;
private Date createDate;
private Long createUserid;
private Short state;
private Long dimId;
private Long pageId;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Long getCreateUserid() {
return createUserid;
}
public void setCreateUserid(Long createUserid) {
this.createUserid = createUserid;
}
public Short getState() {
return state;
}
public void setState(Short state) {
this.state = state;
}
public Long getDimId() {
return dimId;
}
public void setDimId(Long dimId) {
this.dimId = dimId;
}
public Long getPageId() {
return pageId;
}
public void setPageId(Long pageId) {
this.pageId = pageId;
}
@Override
public String toString() {
return "SerPageDimRs{" +
"id=" + id +
", createDate=" + createDate +
", createUserid=" + createUserid +
", state=" + state +
", dimId=" + dimId +
", pageId=" + pageId +
'}';
}
}
\ No newline at end of file
......@@ -24,6 +24,8 @@ public class SerProj {
private BigDecimal sort;
private BigDecimal parent;
public BigDecimal getId() {
return id;
}
......@@ -103,4 +105,12 @@ public class SerProj {
public void setSort(BigDecimal sort) {
this.sort = sort;
}
public BigDecimal getParent() {
return parent;
}
public void setParent(BigDecimal parent) {
this.parent = parent;
}
}
\ No newline at end of file
package com.bsoft.api.model;
import com.bsoft.api.model.reqmodel.BudgetValue;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class SerProjValue {
public SerProjValue() {
}
......@@ -31,6 +28,7 @@ public class SerProjValue {
this.szUnit = request.getSzUnit();
}
private BigDecimal id;
private Date createDate;
......@@ -77,6 +75,217 @@ public class SerProjValue {
private String szUnit;
private String hosCode;
private BigDecimal wqqsZypzJs;
private String deptName;
private String hoscode;
public BigDecimal getId() {
return id;
}
public void setId(BigDecimal id) {
this.id = id;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public BigDecimal getCreateUserid() {
return createUserid;
}
public void setCreateUserid(BigDecimal createUserid) {
this.createUserid = createUserid;
}
public BigDecimal getState() {
return state;
}
public void setState(BigDecimal state) {
this.state = state;
}
public BigDecimal getProjId() {
return projId;
}
public void setProjId(BigDecimal projId) {
this.projId = projId;
}
public BigDecimal getQnz() {
return qnz;
}
public void setQnz(BigDecimal qnz) {
this.qnz = qnz;
}
public BigDecimal getWqqs() {
return wqqs;
}
public void setWqqs(BigDecimal wqqs) {
this.wqqs = wqqs;
}
public BigDecimal getLs() {
return ls;
}
public void setLs(BigDecimal ls) {
this.ls = ls;
}
public BigDecimal getMb() {
return mb;
}
public void setMb(BigDecimal mb) {
this.mb = mb;
}
public BigDecimal getCsysz() {
return csysz;
}
public void setCsysz(BigDecimal csysz) {
this.csysz = csysz;
}
public BigDecimal getCsyszTb() {
return csyszTb;
}
public void setCsyszTb(BigDecimal csyszTb) {
this.csyszTb = csyszTb;
}
public BigDecimal getYsz() {
return ysz;
}
public void setYsz(BigDecimal ysz) {
this.ysz = ysz;
}
public BigDecimal getYszTb() {
return yszTb;
}
public void setYszTb(BigDecimal yszTb) {
this.yszTb = yszTb;
}
public BigDecimal getSz() {
return sz;
}
public void setSz(BigDecimal sz) {
this.sz = sz;
}
public BigDecimal getZxpl() {
return zxpl;
}
public void setZxpl(BigDecimal zxpl) {
this.zxpl = zxpl;
}
public BigDecimal getDate() {
return date;
}
public void setDate(BigDecimal date) {
this.date = date;
}
public String getDeptCode() {
return deptCode;
}
public void setDeptCode(String deptCode) {
this.deptCode = deptCode;
}
public BigDecimal getSort() {
return sort;
}
public void setSort(BigDecimal sort) {
this.sort = sort;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public String getQnzUnit() {
return qnzUnit;
}
public void setQnzUnit(String qnzUnit) {
this.qnzUnit = qnzUnit;
}
public String getCsyszUnit() {
return csyszUnit;
}
public void setCsyszUnit(String csyszUnit) {
this.csyszUnit = csyszUnit;
}
public String getYszUnit() {
return yszUnit;
}
public void setYszUnit(String yszUnit) {
this.yszUnit = yszUnit;
}
public String getSzUnit() {
return szUnit;
}
public void setSzUnit(String szUnit) {
this.szUnit = szUnit;
}
public BigDecimal getWqqsZypzJs() {
return wqqsZypzJs;
}
public void setWqqsZypzJs(BigDecimal wqqsZypzJs) {
this.wqqsZypzJs = wqqsZypzJs;
}
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
public String getHoscode() {
return hoscode;
}
public void setHoscode(String hoscode) {
this.hoscode = hoscode;
}
}
\ No newline at end of file
package com.bsoft.api.model;
import java.math.BigDecimal;
import java.util.Date;
public class SerProjValueHistory {
private BigDecimal id;
private Date createDate;
private BigDecimal createUserid;
private BigDecimal state;
private BigDecimal projId;
private BigDecimal qnz;
private BigDecimal wqqs;
private Long ls;
private BigDecimal mb;
private BigDecimal csysz;
private BigDecimal csyszTb;
private BigDecimal ysz;
private BigDecimal yszTb;
private BigDecimal sz;
private BigDecimal zxpl;
private BigDecimal date;
private String deptCode;
private BigDecimal sort;
private String version;
private String qnzUnit;
private String csyszUnit;
private String yszUnit;
private String szUnit;
private Long wqqsZypzJs;
private String deptName;
public BigDecimal getId() {
return id;
}
public void setId(BigDecimal id) {
this.id = id;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public BigDecimal getCreateUserid() {
return createUserid;
}
public void setCreateUserid(BigDecimal createUserid) {
this.createUserid = createUserid;
}
public BigDecimal getState() {
return state;
}
public void setState(BigDecimal state) {
this.state = state;
}
public BigDecimal getProjId() {
return projId;
}
public void setProjId(BigDecimal projId) {
this.projId = projId;
}
public BigDecimal getQnz() {
return qnz;
}
public void setQnz(BigDecimal qnz) {
this.qnz = qnz;
}
public BigDecimal getWqqs() {
return wqqs;
}
public void setWqqs(BigDecimal wqqs) {
this.wqqs = wqqs;
}
public Long getLs() {
return ls;
}
public void setLs(Long ls) {
this.ls = ls;
}
public BigDecimal getMb() {
return mb;
}
public void setMb(BigDecimal mb) {
this.mb = mb;
}
public BigDecimal getCsysz() {
return csysz;
}
public void setCsysz(BigDecimal csysz) {
this.csysz = csysz;
}
public BigDecimal getCsyszTb() {
return csyszTb;
}
public void setCsyszTb(BigDecimal csyszTb) {
this.csyszTb = csyszTb;
}
public BigDecimal getYsz() {
return ysz;
}
public void setYsz(BigDecimal ysz) {
this.ysz = ysz;
}
public BigDecimal getYszTb() {
return yszTb;
}
public void setYszTb(BigDecimal yszTb) {
this.yszTb = yszTb;
}
public BigDecimal getSz() {
return sz;
}
public void setSz(BigDecimal sz) {
this.sz = sz;
}
public BigDecimal getZxpl() {
return zxpl;
}
public void setZxpl(BigDecimal zxpl) {
this.zxpl = zxpl;
}
public BigDecimal getDate() {
return date;
}
public void setDate(BigDecimal date) {
this.date = date;
}
public String getDeptCode() {
return deptCode;
}
public void setDeptCode(String deptCode) {
this.deptCode = deptCode;
}
public BigDecimal getSort() {
return sort;
}
public void setSort(BigDecimal sort) {
this.sort = sort;
}
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public String getQnzUnit() {
return qnzUnit;
}
public void setQnzUnit(String qnzUnit) {
this.qnzUnit = qnzUnit;
}
public String getCsyszUnit() {
return csyszUnit;
}
public void setCsyszUnit(String csyszUnit) {
this.csyszUnit = csyszUnit;
}
public String getYszUnit() {
return yszUnit;
}
public void setYszUnit(String yszUnit) {
this.yszUnit = yszUnit;
}
public String getSzUnit() {
return szUnit;
}
public void setSzUnit(String szUnit) {
this.szUnit = szUnit;
}
public Long getWqqsZypzJs() {
return wqqsZypzJs;
}
public void setWqqsZypzJs(Long wqqsZypzJs) {
this.wqqsZypzJs = wqqsZypzJs;
}
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
}
\ No newline at end of file
......@@ -5,7 +5,11 @@ import java.util.Date;
public class SysMenu {
private Long id;
private Long projectId;
private Date createData;
private Long createUserid;
private Short state;
private String menuName;
......@@ -27,12 +31,28 @@ public class SysMenu {
this.id = id;
}
public Long getProjectId() {
return projectId;
public Date getCreateData() {
return createData;
}
public void setCreateData(Date createData) {
this.createData = createData;
}
public Long getCreateUserid() {
return createUserid;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
public void setCreateUserid(Long createUserid) {
this.createUserid = createUserid;
}
public Short getState() {
return state;
}
public void setState(Short state) {
this.state = state;
}
public String getMenuName() {
......@@ -82,18 +102,4 @@ public class SysMenu {
public void setSort(Long sort) {
this.sort = sort;
}
@Override
public String toString() {
return "SysMenu{" +
"id=" + id +
", projectId=" + projectId +
", menuName='" + menuName + '\'' +
", menuUrl='" + menuUrl + '\'' +
", menuImage='" + menuImage + '\'' +
", parentId=" + parentId +
", pageCode='" + pageCode + '\'' +
", sort=" + sort +
'}';
}
}
\ No newline at end of file
package com.bsoft.api.model;
import java.util.Date;
public class SysOrg {
private Long id;
private Date createData;
private String createUserid;
private Short state;
private String orgCode;
private String orgName;
private String orgNo;
private String orgShortName;
private String orgGroup;
private String orgType;
private String orgAddress;
private Long parentId;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Date getCreateData() {
return createData;
}
public void setCreateData(Date createData) {
this.createData = createData;
}
public String getCreateUserid() {
return createUserid;
}
public void setCreateUserid(String createUserid) {
this.createUserid = createUserid;
}
public Short getState() {
return state;
}
public void setState(Short state) {
this.state = state;
}
public String getOrgCode() {
return orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode;
}
public String getOrgName() {
return orgName;
}
public void setOrgName(String orgName) {
this.orgName = orgName;
}
public String getOrgNo() {
return orgNo;
}
public void setOrgNo(String orgNo) {
this.orgNo = orgNo;
}
public String getOrgShortName() {
return orgShortName;
}
public void setOrgShortName(String orgShortName) {
this.orgShortName = orgShortName;
}
public String getOrgGroup() {
return orgGroup;
}
public void setOrgGroup(String orgGroup) {
this.orgGroup = orgGroup;
}
public String getOrgType() {
return orgType;
}
public void setOrgType(String orgType) {
this.orgType = orgType;
}
public String getOrgAddress() {
return orgAddress;
}
public void setOrgAddress(String orgAddress) {
this.orgAddress = orgAddress;
}
public Long getParentId() {
return parentId;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
@Override
public String toString() {
return "SysOrg{" +
"id=" + id +
", createData=" + createData +
", createUserid='" + createUserid + '\'' +
", state=" + state +
", orgCode='" + orgCode + '\'' +
", orgName='" + orgName + '\'' +
", orgNo='" + orgNo + '\'' +
", orgShortName='" + orgShortName + '\'' +
", orgGroup='" + orgGroup + '\'' +
", orgType='" + orgType + '\'' +
", orgAddress='" + orgAddress + '\'' +
", parentId=" + parentId +
'}';
}
}
\ No newline at end of file
......@@ -62,16 +62,4 @@ public class SysProject {
public void setProjectName(String projectName) {
this.projectName = projectName;
}
@Override
public String toString() {
return "SysProject{" +
"id=" + id +
", createDate=" + createDate +
", createUserid=" + createUserid +
", state=" + state +
", projectCode='" + projectCode + '\'' +
", projectName='" + projectName + '\'' +
'}';
}
}
\ No newline at end of file
......@@ -13,8 +13,6 @@ public class SysRole {
private String roleName;
private Long projectId;
private Long roleCode;
public Long getId() {
......@@ -57,14 +55,6 @@ public class SysRole {
this.roleName = roleName;
}
public Long getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public Long getRoleCode() {
return roleCode;
}
......@@ -72,17 +62,4 @@ public class SysRole {
public void setRoleCode(Long roleCode) {
this.roleCode = roleCode;
}
@Override
public String toString() {
return "SysRole{" +
"id=" + id +
", createDate=" + createDate +
", createUserid=" + createUserid +
", state=" + state +
", roleName='" + roleName + '\'' +
", projectId=" + projectId +
", roleCode=" + roleCode +
'}';
}
}
\ No newline at end of file
......@@ -62,16 +62,4 @@ public class SysRoleMenuRs {
public void setRoleId(Long roleId) {
this.roleId = roleId;
}
@Override
public String toString() {
return "SysRoleMenuRs{" +
"id=" + id +
", createDate=" + createDate +
", createUserid=" + createUserid +
", state=" + state +
", menuId=" + menuId +
", roleId=" + roleId +
'}';
}
}
\ No newline at end of file
package com.bsoft.api.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
@ApiModel(description = "用户信息")
public class SysUser {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.ID
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
@ApiModelProperty("用户ID")
private Long id;
// /**
// *
// * This field was generated by MyBatis Generator.
// * This field corresponds to the database column LL.SYS_USER.CREATE_DATE
// *
// * @mbggenerated Tue Oct 22 14:44:12 CST 2019
// */
// @ApiModelProperty("创建时间")
// private Date createDate;
//
// /**
// *
// * This field was generated by MyBatis Generator.
// * This field corresponds to the database column LL.SYS_USER.CREATE_USERID
// *
// * @mbggenerated Tue Oct 22 14:44:12 CST 2019
// */
// @ApiModelProperty("创建人ID")
// private Long createUserid;
//
// /**
// *
// * This field was generated by MyBatis Generator.
// * This field corresponds to the database column LL.SYS_USER.STATE
// *
// * @mbggenerated Tue Oct 22 14:44:12 CST 2019
// */
// @ApiModelProperty("状态(1=启用/0=禁用)")
// private Short state;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.USER_CODE
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
@ApiModelProperty("用户编码用于登陆")
private Date createDate;
private Long createUserid;
private Short state;
private String userCode;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.USER_NAME
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
@ApiModelProperty("用户名称")
private String userName;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.PASSWORD
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
@ApiModelProperty("密码")
private String password;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.IDCARD
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
@ApiModelProperty("身份证")
private String idcard;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.SEX
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
@ApiModelProperty("性别")
private String sex;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.MOBILE
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
@ApiModelProperty("手机号码")
private String mobile;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.PAGE_COUNT
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
private Long pageCount;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.ERROR_COUNT
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
private Long errorCount;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.ERROR_TIME
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
@ApiModelProperty("错误日期")
private Date errorTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.LAST_TIME
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
@ApiModelProperty("最后一次登陆时间")
private Date lastTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column LL.SYS_USER.LAST_IP
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
@ApiModelProperty("最后一次登陆IP")
private String lastIp;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column LL.SYS_USER.ID
*
* @return the value of LL.SYS_USER.ID
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column LL.SYS_USER.ID
*
* @param id the value for LL.SYS_USER.ID
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column LL.SYS_USER.CREATE_DATE
*
* @return the value of LL.SYS_USER.CREATE_DATE
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
// public Date getCreateDate() {
// return createDate;
// }
//
// /**
// * This method was generated by MyBatis Generator.
// * This method sets the value of the database column LL.SYS_USER.CREATE_DATE
// *
// * @param createDate the value for LL.SYS_USER.CREATE_DATE
// *
// * @mbggenerated Tue Oct 22 14:44:12 CST 2019
// */
// public void setCreateDate(Date createDate) {
// this.createDate = createDate;
// }
//
// /**
// * This method was generated by MyBatis Generator.
// * This method returns the value of the database column LL.SYS_USER.CREATE_USERID
// *
// * @return the value of LL.SYS_USER.CREATE_USERID
// *
// * @mbggenerated Tue Oct 22 14:44:12 CST 2019
// */
// public Long getCreateUserid() {
// return createUserid;
// }
//
// /**
// * This method was generated by MyBatis Generator.
// * This method sets the value of the database column LL.SYS_USER.CREATE_USERID
// *
// * @param createUserid the value for LL.SYS_USER.CREATE_USERID
// *
// * @mbggenerated Tue Oct 22 14:44:12 CST 2019
// */
// public void setCreateUserid(Long createUserid) {
// this.createUserid = createUserid;
// }
//
// /**
// * This method was generated by MyBatis Generator.
// * This method returns the value of the database column LL.SYS_USER.STATE
// *
// * @return the value of LL.SYS_USER.STATE
// *
// * @mbggenerated Tue Oct 22 14:44:12 CST 2019
// */
// public Short getState() {
// return state;
// }
//
// /**
// * This method was generated by MyBatis Generator.
// * This method sets the value of the database column LL.SYS_USER.STATE
// *
// * @param state the value for LL.SYS_USER.STATE
// *
// * @mbggenerated Tue Oct 22 14:44:12 CST 2019
// */
// public void setState(Short state) {
// this.state = state;
// }
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column LL.SYS_USER.USER_CODE
*
* @return the value of LL.SYS_USER.USER_CODE
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Long getCreateUserid() {
return createUserid;
}
public void setCreateUserid(Long createUserid) {
this.createUserid = createUserid;
}
public Short getState() {
return state;
}
public void setState(Short state) {
this.state = state;
}
public String getUserCode() {
return userCode;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column LL.SYS_USER.USER_CODE
*
* @param userCode the value for LL.SYS_USER.USER_CODE
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public void setUserCode(String userCode) {
this.userCode = userCode;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column LL.SYS_USER.USER_NAME
*
* @return the value of LL.SYS_USER.USER_NAME
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public String getUserName() {
return userName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column LL.SYS_USER.USER_NAME
*
* @param userName the value for LL.SYS_USER.USER_NAME
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public void setUserName(String userName) {
this.userName = userName;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column LL.SYS_USER.PASSWORD
*
* @return the value of LL.SYS_USER.PASSWORD
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public String getPassword() {
return password;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column LL.SYS_USER.PASSWORD
*
* @param password the value for LL.SYS_USER.PASSWORD
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public void setPassword(String password) {
this.password = password;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column LL.SYS_USER.IDCARD
*
* @return the value of LL.SYS_USER.IDCARD
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public String getIdcard() {
return idcard;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column LL.SYS_USER.IDCARD
*
* @param idcard the value for LL.SYS_USER.IDCARD
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public void setIdcard(String idcard) {
this.idcard = idcard;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column LL.SYS_USER.SEX
*
* @return the value of LL.SYS_USER.SEX
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public String getSex() {
return sex;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column LL.SYS_USER.SEX
*
* @param sex the value for LL.SYS_USER.SEX
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public void setSex(String sex) {
this.sex = sex;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column LL.SYS_USER.MOBILE
*
* @return the value of LL.SYS_USER.MOBILE
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public String getMobile() {
return mobile;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column LL.SYS_USER.MOBILE
*
* @param mobile the value for LL.SYS_USER.MOBILE
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public void setMobile(String mobile) {
this.mobile = mobile;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column LL.SYS_USER.PAGE_COUNT
*
* @return the value of LL.SYS_USER.PAGE_COUNT
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public Long getPageCount() {
return pageCount;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column LL.SYS_USER.PAGE_COUNT
*
* @param pageCount the value for LL.SYS_USER.PAGE_COUNT
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public void setPageCount(Long pageCount) {
this.pageCount = pageCount;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column LL.SYS_USER.ERROR_COUNT
*
* @return the value of LL.SYS_USER.ERROR_COUNT
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public Long getErrorCount() {
return errorCount;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column LL.SYS_USER.ERROR_COUNT
*
* @param errorCount the value for LL.SYS_USER.ERROR_COUNT
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public void setErrorCount(Long errorCount) {
this.errorCount = errorCount;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column LL.SYS_USER.ERROR_TIME
*
* @return the value of LL.SYS_USER.ERROR_TIME
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public Date getErrorTime() {
return errorTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column LL.SYS_USER.ERROR_TIME
*
* @param errorTime the value for LL.SYS_USER.ERROR_TIME
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public void setErrorTime(Date errorTime) {
this.errorTime = errorTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column LL.SYS_USER.LAST_TIME
*
* @return the value of LL.SYS_USER.LAST_TIME
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public Date getLastTime() {
return lastTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column LL.SYS_USER.LAST_TIME
*
* @param lastTime the value for LL.SYS_USER.LAST_TIME
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public void setLastTime(Date lastTime) {
this.lastTime = lastTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column LL.SYS_USER.LAST_IP
*
* @return the value of LL.SYS_USER.LAST_IP
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public String getLastIp() {
return lastIp;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column LL.SYS_USER.LAST_IP
*
* @param lastIp the value for LL.SYS_USER.LAST_IP
*
* @mbggenerated Tue Oct 22 14:44:12 CST 2019
*/
public void setLastIp(String lastIp) {
this.lastIp = lastIp;
}
@Override
public String toString() {
return "SysUser{" +
"id=" + id +
", userCode='" + userCode + '\'' +
", userName='" + userName + '\'' +
", password='" + password + '\'' +
", idcard='" + idcard + '\'' +
", sex='" + sex + '\'' +
", mobile='" + mobile + '\'' +
", pageCount=" + pageCount +
", errorCount=" + errorCount +
", errorTime=" + errorTime +
", lastTime=" + lastTime +
", lastIp='" + lastIp + '\'' +
'}';
}
}
\ No newline at end of file
......@@ -62,16 +62,4 @@ public class SysUserMenuRs {
public void setMenuId(Long menuId) {
this.menuId = menuId;
}
@Override
public String toString() {
return "SysUserMenuRs{" +
"id=" + id +
", createDate=" + createDate +
", createUserid=" + createUserid +
", state=" + state +
", userId=" + userId +
", menuId=" + menuId +
'}';
}
}
\ No newline at end of file
......@@ -62,16 +62,4 @@ public class SysUserOrgRs {
public void setOrgId(Long orgId) {
this.orgId = orgId;
}
@Override
public String toString() {
return "SysUserOrgRs{" +
"id=" + id +
", createDate=" + createDate +
", createUserid=" + createUserid +
", state=" + state +
", userId=" + userId +
", orgId=" + orgId +
'}';
}
}
\ No newline at end of file
......@@ -5,6 +5,12 @@ import java.util.Date;
public class SysUserRoleRs {
private Long id;
private Date createDate;
private Long createUserid;
private Short state;
private Long userId;
private Long roleId;
......@@ -17,6 +23,30 @@ public class SysUserRoleRs {
this.id = id;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Long getCreateUserid() {
return createUserid;
}
public void setCreateUserid(Long createUserid) {
this.createUserid = createUserid;
}
public Short getState() {
return state;
}
public void setState(Short state) {
this.state = state;
}
public Long getUserId() {
return userId;
}
......@@ -32,13 +62,4 @@ public class SysUserRoleRs {
public void setRoleId(Long roleId) {
this.roleId = roleId;
}
@Override
public String toString() {
return "SysUserRoleRs{" +
"id=" + id +
", userId=" + userId +
", roleId=" + roleId +
'}';
}
}
\ No newline at end of file
package com.bsoft.api.model.respmodel;
import com.bsoft.api.model.DicDim;
import com.bsoft.api.model.SerDimValue;
......@@ -10,7 +11,6 @@ public class DimValue {
private List<SerDimValue> dimValues;
public DicDim getDicDim() {
return dicDim;
}
......
......@@ -4,6 +4,6 @@ import com.bsoft.api.model.DicInd;
import java.util.List;
public interface DicIndService extends ServiceBase<DicInd>{
public interface DicIndService extends ServiceBase<DicInd> {
List<DicInd> selectAll(String filter);
}
package com.bsoft.api.service.Impl;
import com.bsoft.api.common.exceptions.DBConfigurationError;
import com.bsoft.api.common.utils.SqlUtil;
import com.bsoft.api.mapper.BlockValuesMapper;
import com.bsoft.api.mapper.DicDimMapper;
import com.bsoft.api.mapper.SerPageBlockRsMapper;
import com.bsoft.api.mapper.SerPageMapper;
import com.bsoft.api.model.DicDim;
import com.bsoft.api.model.SerPage;
import com.bsoft.api.model.SerPageBlockRs;
import com.bsoft.api.model.respmodel.BlockValue;
import com.bsoft.api.service.AsynBlockValuesService;
import com.bsoft.api.service.BlockValuesService;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.binding.MapperMethod;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.AsyncResult;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.*;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
@Service
public class BlockValuesServiceImpl implements BlockValuesService {
......
package com.bsoft.api.service.Impl;
import com.bsoft.api.common.enums.DimType;
import com.bsoft.api.mapper.DicDimMapper;
import com.bsoft.api.mapper.SerDimValueMapper;
import com.bsoft.api.model.DicDim;
......@@ -50,14 +51,14 @@ public class DicDimServiceImpl implements DicDimService {
}
@Override
public List<DimValue> getByPageCode(String pageCode, Long orgId, String date) {
public List<DimValue> getByPageCode(String pageCode,Long orgId,String date) {
List<DicDim> dicDimList = dicDimMapper.selectByPageCode(pageCode);
if(dicDimList!=null&&dicDimList.size()>0){
if(dicDimList != null && dicDimList.size() > 0){
List<DimValue> dimValueList = new ArrayList<>();
for (DicDim dic:dicDimList) {
for(DicDim dic : dicDimList){
DimValue dimValue = new DimValue();
dimValue.setDicDim(dic);
if(dic.getDimType()== SerDimValue.Dim_Type.DATABASE.getValue()){
if(dic.getDimType() == DimType.DATABASE.getValue()){
List<SerDimValue> serDimValueList = serDimValueMapper.selectByDimId(pageCode,orgId,dic.getId(),date);
dimValue.setDimValues(serDimValueList);
}
......
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
......
......@@ -12,21 +12,20 @@ import java.util.UUID;
public class ExcelServiceImpl implements ExcelService {
@Override
public String tableToXls(String realPath, String tableStr) {
try {
File directory = new File(realPath+"/excel");
if (!directory .exists() && !directory .isDirectory())
{
directory .mkdir();
public String tableToXls(String realPath,String tableStr) {
try{
File directory = new File(realPath + "/excel");
if(!directory.exists() && !directory.isDirectory()){
directory.mkdir();
}
String uuid = UUID.randomUUID().toString().replaceAll("-", "");
String fileName = uuid+".xls";
FileOutputStream fout = new FileOutputStream(directory+"/"+fileName);
TableToXls.process(tableStr, fout);
String uuid = UUID.randomUUID().toString().replaceAll("-","");
String fileName = uuid + ".xls";
FileOutputStream fout = new FileOutputStream(directory + "/" + fileName);
TableToXls.process(tableStr,fout);
fout.close();
return "excel/"+fileName;
}catch (Exception ex){
log.error(ex.getMessage(), ex);
return "excel/" + fileName;
}catch(Exception ex){
log.error(ex.getMessage(),ex);
}
return null;
}
......
......@@ -11,7 +11,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.lang.annotation.Retention;
import java.util.Date;
import java.util.List;
......@@ -28,13 +27,13 @@ public class LoginServiceImpl implements LoginService {
private DicOrgMapper dicOrgMapper;
@Override
public LoginInfo login(String logName, String password,String ip) {
public LoginInfo login(String logName,String password,String ip) {
LoginInfo loginInfo = new LoginInfo();
SysUser user = userServiceImpl.findByLoginName(logName);
if(user != null && user.getPassword().equals(password)){
String token = TokenUtil.getToken(password, user);
String token = TokenUtil.getToken(password,user);
//修改ip以及最后登录时间
user.setLastIp(ip);
user.setLastTime(new Date());
......@@ -44,13 +43,13 @@ public class LoginServiceImpl implements LoginService {
loginInfo.setToken(token);
loginInfo.setUser(user);
//查询用户机构
List<DicOrg> orgList =dicOrgMapper.selectByUser(user.getId());
List<DicOrg> orgList = dicOrgMapper.selectByUser(user.getId());
loginInfo.setOrg(orgList);
}
return loginInfo;
}
public String refreshToken(String oldToken){
public String refreshToken(String oldToken) {
return TokenUtil.refresh(oldToken);
}
}
package com.bsoft.api.service.Impl;
import com.bsoft.api.common.utils.SqlUtil;
import com.bsoft.api.mapper.SerDiseaseDocRsMapper;
import com.bsoft.api.model.SerDiseaseDocRs;
import com.bsoft.api.service.SerDiseaseDocService;
import com.bsoft.common.utils.StringUtil;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.sql.Array;
import java.util.ArrayList;
import java.util.List;
@Service
......@@ -18,11 +16,11 @@ public class SerDiseaseDocServiceImpl implements SerDiseaseDocService {
private SerDiseaseDocRsMapper serDiseaseDocRsMapper;
@Override
public List<SerDiseaseDocRs> getDiseaseDoc(String docCode, String mdcCode, String deptCode,String date) throws InterruptedException {
docCode= StringUtil.isNullOrEmpty(docCode)?null:docCode;
mdcCode= StringUtil.isNullOrEmpty(mdcCode)?"":mdcCode;
deptCode= StringUtil.isNullOrEmpty(deptCode)?null:deptCode;
date= StringUtil.isNullOrEmpty(date)?null:date;
public List<SerDiseaseDocRs> getDiseaseDoc(String docCode,String mdcCode,String deptCode,String date) throws InterruptedException {
docCode = StringUtil.isNullOrEmpty(docCode) ? null : docCode;
mdcCode = StringUtil.isNullOrEmpty(mdcCode) ? "" : mdcCode;
deptCode = StringUtil.isNullOrEmpty(deptCode) ? null : deptCode;
date = StringUtil.isNullOrEmpty(date) ? null : date;
String[] inField = mdcCode.split(",");
// return serDiseaseDocRsMapper.selectByCode(docCode,mdcCode,deptCode,date);
return serDiseaseDocRsMapper.selectByRelation(docCode,inField,deptCode,date);
......
package com.bsoft.api.service.Impl;
import com.bsoft.api.mapper.DicOrgMapper;
import com.bsoft.api.mapper.SerDiseaseMapper;
import com.bsoft.api.model.DicOrg;
import com.bsoft.api.model.SerDisease;
import com.bsoft.api.model.respmodel.DiseaseLevel;
import com.bsoft.api.service.SerDiseaseService;
......@@ -17,8 +15,6 @@ import java.util.List;
public class SerDiseaseServiceImpl implements SerDiseaseService {
@Resource
private SerDiseaseMapper serDiseaseMapper;
@Resource
private DicOrgMapper dicOrgMapper;
@Override
public List<DiseaseLevel> selectListByIdorLevel(String date,String diseaseCode,Integer level,String docCode,String deptCode,Long userId) {
......
......@@ -13,7 +13,6 @@ import com.bsoft.api.model.reqmodel.AddBudgetValue;
import com.bsoft.api.model.reqmodel.BudgetValue;
import com.bsoft.api.model.respmodel.*;
import com.bsoft.api.service.SerProjValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
......@@ -94,7 +93,7 @@ public class SerProjValueServiceImpl implements SerProjValueService {
info.setCreateDate(new Date());
info.setState(BigDecimal.valueOf(StateType.ON.getValue()));
info.setVersion(String.valueOf(version));
info.setHosCode(orgCode);
info.setHoscode(orgCode);
serProjValueMapper.insert(info);
}
//调用计算数值存储过程
......
......@@ -7,12 +7,9 @@ import com.bsoft.api.service.SysMenuService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.awt.*;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@Service
......
......@@ -6,7 +6,6 @@ import com.bsoft.api.service.SysRoleMenuRsService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
@Service
......
......@@ -6,7 +6,6 @@ import com.bsoft.api.service.SysRoleService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
@Service
......
......@@ -6,7 +6,6 @@ import com.bsoft.api.service.SysUserMenuRsService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
@Service
......
......@@ -7,7 +7,6 @@ import com.bsoft.api.service.SysUserRoleRsService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
@Service
......
......@@ -10,7 +10,7 @@ import java.util.List;
public interface LoginService {
LoginInfo login(String loginName, String password,String ip);
LoginInfo login(String loginName,String password,String ip);
String refreshToken(String oldToken);
......@@ -24,15 +24,13 @@ public interface LoginService {
private List<DicOrg> org;
public LoginInfo() {
}
public LoginInfo(String token, SysUser user,List<DicOrg> org) {
public LoginInfo(String token,SysUser user,List<DicOrg> org) {
this.token = token;
this.user = user;
this.org=org;
this.org = org;
}
public String getToken() {
......
......@@ -5,5 +5,5 @@ import com.bsoft.api.model.SerDiseaseDocRs;
import java.util.List;
public interface SerDiseaseDocService {
List<SerDiseaseDocRs> getDiseaseDoc(String docCode, String mdcCode, String deptCode,String date) throws InterruptedException;
List<SerDiseaseDocRs> getDiseaseDoc(String docCode,String mdcCode,String deptCode,String date) throws InterruptedException;
}
......@@ -8,6 +8,7 @@ import java.util.List;
public interface SysMenuService extends ServiceBase<SysMenu> {
//顶级菜单的父级id
final static Integer MENU_TOP_PARENT_ID =0;
final static Integer MENU_TOP_PARENT_ID = 0;
List<SysMenuList> getMenu(Long userId) throws Exception;
}
......@@ -11,6 +11,7 @@ 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 = {"维度操作"}, hidden = true)
......@@ -21,40 +22,39 @@ public class DicDimController {
private DicDimService dicDimService;
@GetMapping("list")
public Object 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){
public Object listpage(Integer pageSize,Integer pageIndex) {
List<DicDim> list = dicDimService.findAll();
ListPage<DicDim> listPage = new ListPage(list, pageSize, pageIndex, 0);
ListPage<DicDim> listPage = new ListPage(list,pageSize,pageIndex,0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Long id){
public Object info(Long id) {
dicDimService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(DicDim dicDim){
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){
public Object update(DicDim dicDim) {
dicDimService.update(dicDim);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Long id){
public Object delete(Long id) {
dicDimService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
......
......@@ -23,40 +23,39 @@ public class DicIndController {
private DicIndService dicIndService;
@GetMapping("list")
public Object list(){
public Object list() {
List<DicInd> list = dicIndService.findAll();
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("listpage")
public Object listpage(Integer pageSize, Integer pageIndex){
public Object listpage(Integer pageSize,Integer pageIndex) {
List<DicInd> list = dicIndService.findAll();
ListPage<DicDim> listPage = new ListPage(list, pageSize, pageIndex, 0);
ListPage<DicDim> listPage = new ListPage(list,pageSize,pageIndex,0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Long id){
public Object info(Long id) {
dicIndService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(DicInd dicInd){
public Object add(DicInd dicInd) {
dicIndService.add(dicInd);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("update")
public Object update(DicInd dicInd){
public Object update(DicInd dicInd) {
dicIndService.update(dicInd);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Long id){
public Object delete(Long id) {
dicIndService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
......
......@@ -22,40 +22,39 @@ public class DicOrgController {
private DicOrgService dicOrgService;
@GetMapping("list")
public Object 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){
public Object listpage(Integer pageSize,Integer pageIndex) {
List<DicOrg> list = dicOrgService.findAll();
ListPage<DicOrg> listPage = new ListPage(list, pageSize, pageIndex, 0);
ListPage<DicOrg> listPage = new ListPage(list,pageSize,pageIndex,0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Long id){
public Object info(Long id) {
dicOrgService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(DicOrg dicOrg){
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){
public Object update(DicOrg dicOrg) {
dicOrgService.update(dicOrg);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Long id){
public Object delete(Long id) {
dicOrgService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
......
......@@ -22,40 +22,39 @@ public class SysMenuController {
private SysMenuService sysMenuService;
@GetMapping("list")
public Object 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){
public Object listpage(Integer pageSize,Integer pageIndex) {
List<SysMenu> list = sysMenuService.findAll();
ListPage<SysMenu> listPage = new ListPage(list, pageSize, pageIndex, 0);
ListPage<SysMenu> listPage = new ListPage(list,pageSize,pageIndex,0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Long id){
public Object info(Long id) {
sysMenuService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(SysMenu sysMenu){
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){
public Object update(SysMenu sysMenu) {
sysMenuService.update(sysMenu);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Long id){
public Object delete(Long id) {
sysMenuService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
......
......@@ -22,40 +22,39 @@ public class SysRoleController {
private SysRoleService sysRoleService;
@GetMapping("list")
public Object 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){
public Object listpage(Integer pageSize,Integer pageIndex) {
List<SysRole> list = sysRoleService.findAll();
ListPage<SysRole> listPage = new ListPage(list, pageSize, pageIndex, 0);
ListPage<SysRole> listPage = new ListPage(list,pageSize,pageIndex,0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Long id){
public Object info(Long id) {
sysRoleService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(SysRole sysRole){
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){
public Object update(SysRole sysRole) {
sysRoleService.update(sysRole);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Long id){
public Object delete(Long id) {
sysRoleService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
......
......@@ -5,7 +5,6 @@ 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;
......@@ -23,40 +22,39 @@ public class SysRoleMenuRsController {
private SysRoleMenuRsService sysRoleMenuRsService;
@GetMapping("list")
public Object 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){
public Object listpage(Integer pageSize,Integer pageIndex) {
List<SysRoleMenuRs> list = sysRoleMenuRsService.findAll();
ListPage<SysRoleMenuRs> listPage = new ListPage(list, pageSize, pageIndex, 0);
ListPage<SysRoleMenuRs> listPage = new ListPage(list,pageSize,pageIndex,0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Long id){
public Object info(Long id) {
sysRoleMenuRsService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(SysRoleMenuRs sysRoleMenuRs){
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){
public Object update(SysRoleMenuRs sysRoleMenuRs) {
sysRoleMenuRsService.update(sysRoleMenuRs);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Long id){
public Object delete(Long id) {
sysRoleMenuRsService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
......
......@@ -2,7 +2,6 @@ package com.bsoft.api.unusecontroller;
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;
......@@ -23,40 +22,39 @@ public class SysUserMenuRsController {
private SysUserMenuRsService sysUserMenuRsService;
@GetMapping("list")
public Object 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){
public Object listpage(Integer pageSize,Integer pageIndex) {
List<SysUserMenuRs> list = sysUserMenuRsService.findAll();
ListPage<SysUserMenuRs> listPage = new ListPage(list, pageSize, pageIndex, 0);
ListPage<SysUserMenuRs> listPage = new ListPage(list,pageSize,pageIndex,0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Long id){
public Object info(Long id) {
sysUserMenuRsService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(SysUserMenuRs sysUserMenuRs){
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){
public Object update(SysUserMenuRs sysUserMenuRs) {
sysUserMenuRsService.update(sysUserMenuRs);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Long id){
public Object delete(Long id) {
sysUserMenuRsService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
......
......@@ -22,40 +22,39 @@ public class SysUserOrgController {
private SysUserOrgRsService sysUserOrgRsService;
@GetMapping("list")
public Object 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){
public Object listpage(Integer pageSize,Integer pageIndex) {
List<SysUserOrgRs> list = sysUserOrgRsService.findAll();
ListPage<SysUserOrgRs> listPage = new ListPage(list, pageSize, pageIndex, 0);
ListPage<SysUserOrgRs> listPage = new ListPage(list,pageSize,pageIndex,0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Long id){
public Object info(Long id) {
sysUserOrgRsService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(SysUserOrgRs sysUserOrgRs){
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){
public Object update(SysUserOrgRs sysUserOrgRs) {
sysUserOrgRsService.update(sysUserOrgRs);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Long id){
public Object delete(Long id) {
sysUserOrgRsService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
......
......@@ -22,40 +22,39 @@ public class SysUserRoleRsController {
private SysUserRoleRsService sysUserRoleRsService;
@GetMapping("list")
public Object 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){
public Object listpage(Integer pageSize,Integer pageIndex) {
List<SysUserRoleRs> list = sysUserRoleRsService.findAll();
ListPage<SysUserRoleRs> listPage = new ListPage(list, pageSize, pageIndex, 0);
ListPage<SysUserRoleRs> listPage = new ListPage(list,pageSize,pageIndex,0);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),list);
}
@GetMapping("info")
public Object info(Long id){
public Object info(Long id) {
sysUserRoleRsService.find(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("add")
public Object add(SysUserRoleRs sysUserRoleRs){
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){
public Object update(SysUserRoleRs sysUserRoleRs) {
sysUserRoleRsService.update(sysUserRoleRs);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
@PostMapping("delete")
public Object delete(Long id){
public Object delete(Long id) {
sysUserRoleRsService.delete(id);
return new RequestResult(RequestResultType.SUCCESS.getValue(),RequestResultType.SUCCESS.getDesc(),null);
}
......
#### \u5F00\u53D1\u73AF\u5883 ###################################################
jdbc.url=jdbc:mysql://192.168.18.55:3306/bsoft?useUnicode=true&characterEncoding=utf8&useSSL=false&autoReconnect=true&rewriteBatchedStatements=TRUE
jdbc.username=ll
jdbc.password=123456
jdbc.url=jdbc:mysql://192.168.18.176:3306/scml_zp_cs?useUnicode=true&characterEncoding=utf8&useSSL=false&autoReconnect=true&rewriteBatchedStatements=TRUE
jdbc.username=root
jdbc.password=Suvalue2016
jdbc.driverClass=com.mysql.jdbc.Driver
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
......
#### \u5F00\u53D1\u73AF\u5883 ###################################################
jdbc.url=jdbc:mysql://192.168.18.55:3306/bsoft?useUnicode=true&characterEncoding=utf8&useSSL=false&autoReconnect=true&rewriteBatchedStatements=TRUE
jdbc.username=ll
jdbc.password=123456
#### \u6D4B\u8BD5\u73AF\u5883 ###################################################
jdbc.url=jdbc:mysql://192.168.18.176:3306/scml_zp_cs?useUnicode=true&characterEncoding=utf8&useSSL=false&autoReconnect=true&rewriteBatchedStatements=TRUE
jdbc.username=root
jdbc.password=Suvalue2016
jdbc.driverClass=com.mysql.jdbc.Driver
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
......
......@@ -3,39 +3,45 @@
<mapper namespace="com.bsoft.api.mapper.DicDimMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.DicDim">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="DIM_NAME" jdbcType="VARCHAR" property="dimName" />
<result column="DIM_FIELD" jdbcType="VARCHAR" property="dimField" />
<result column="DIM_TYPE" jdbcType="DECIMAL" property="dimType" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from DIC_DIM
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.DicDim">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_DIC_DIM_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into DIC_DIM (
DIM_NAME, DIM_FIELD,DIM_TYPE)
values (
#{dimName,jdbcType=VARCHAR}, #{dimField,jdbcType=VARCHAR},#{dimType,jdbcType=DECIMAL})
insert into DIC_DIM (CREATE_DATE, CREATE_USERID, "STATE",
DIM_NAME, DIM_FIELD, DIM_TYPE
)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{dimName,jdbcType=VARCHAR}, #{dimField,jdbcType=VARCHAR}, #{dimType,jdbcType=DECIMAL}
)
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.DicDim">
update DIC_DIM
set
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
DIM_NAME = #{dimName,jdbcType=VARCHAR},
DIM_FIELD = #{dimField,jdbcType=VARCHAR},
DIM_TYPE=#{dimType,jdbcType=DECIMAL}
DIM_TYPE = #{dimType,jdbcType=DECIMAL}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, DIM_NAME, DIM_FIELD,DIM_TYPE
select ID, CREATE_DATE, CREATE_USERID, "STATE", DIM_NAME, DIM_FIELD, DIM_TYPE
from DIC_DIM
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, DIM_NAME, DIM_FIELD,DIM_TYPE
select ID, CREATE_DATE, CREATE_USERID, "STATE", DIM_NAME, DIM_FIELD, DIM_TYPE
from DIC_DIM
</select>
<select id="selectByPageid" resultMap="BaseResultMap">
......
......@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bsoft.api.mapper.DicIndMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.DicInd">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
......@@ -10,10 +10,11 @@
<result column="IND_NAME" jdbcType="VARCHAR" property="indName" />
<result column="IND_FIELD" jdbcType="VARCHAR" property="indField" />
<result column="COMPUTE_MODE" jdbcType="DECIMAL" property="computeMode" />
<result column="COLUMN_TYPE" jdbcType="VARCHAR" property="columnType" />
<result column="EXEC_SQL" jdbcType="VARCHAR" property="execSql" />
<result column="DESCRIBE" jdbcType="VARCHAR" property="describe" />
<result column="CHECK_SQL" jdbcType="VARCHAR" property="checkSql" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from DIC_IND
where ID = #{id,jdbcType=DECIMAL}
......@@ -24,7 +25,7 @@
</selectKey>
insert into DIC_IND (CREATE_DATE, CREATE_USERID, STATE,
IND_CODE, IND_NAME, COMPUTE_MODE,
EXEC_SQL, DESCRIBE)
EXEC_SQL, `DESCRIBE`)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{indCode,jdbcType=VARCHAR}, #{indName,jdbcType=VARCHAR}, #{computeMode,jdbcType=DECIMAL},
#{execSql,jdbcType=VARCHAR}, #{describe,jdbcType=VARCHAR})
......@@ -38,24 +39,24 @@
IND_NAME = #{indName,jdbcType=VARCHAR},
COMPUTE_MODE = #{computeMode,jdbcType=DECIMAL},
EXEC_SQL = #{execSql,jdbcType=VARCHAR},
DESCRIBE = #{describe,jdbcType=VARCHAR}
`DESCRIBE` = #{describe,jdbcType=VARCHAR}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, IND_CODE, IND_NAME, COMPUTE_MODE, EXEC_SQL,
DESCRIBE
`DESCRIBE`
from DIC_IND
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, IND_CODE, IND_NAME, COMPUTE_MODE, EXEC_SQL,
DESCRIBE
`DESCRIBE`
from DIC_IND
</select>
<select id="selectAllByFilter" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, IND_CODE, IND_NAME,IND_FIELD, COMPUTE_MODE, EXEC_SQL,
DESCRIBE
`DESCRIBE`
from DIC_IND
where IND_NAME LIKE '%'||#{filter,jdbcType=VARCHAR}||'%'
where IND_NAME LIKE CONCAT('%',#{filter,jdbcType=VARCHAR})
</select>
</mapper>
\ No newline at end of file
......@@ -3,6 +3,9 @@
<mapper namespace="com.bsoft.api.mapper.DicOrgMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.DicOrg">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="ORG_CODE" jdbcType="VARCHAR" property="orgCode" />
<result column="ORG_NAME" jdbcType="VARCHAR" property="orgName" />
<result column="ORG_NO" jdbcType="VARCHAR" property="orgNo" />
......@@ -27,9 +30,9 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.DicOrg">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_DIC_ORG_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into DIC_ORG (CREATE_DATE, CREATE_USERID, STATE,
insert into DIC_ORG (CREATE_DATE, CREATE_USERID, "STATE",
ORG_CODE, ORG_NAME, ORG_NO,
ORG_SHORT_NAME, ORG_GROUP, ORG_TYPE,
ORG_ADDRESS, PARENT_ID)
......@@ -37,15 +40,12 @@
#{orgCode,jdbcType=VARCHAR}, #{orgName,jdbcType=VARCHAR}, #{orgNo,jdbcType=VARCHAR},
#{orgShortName,jdbcType=VARCHAR}, #{orgGroup,jdbcType=VARCHAR}, #{orgType,jdbcType=VARCHAR},
#{orgAddress,jdbcType=VARCHAR}, #{parentId,jdbcType=DECIMAL})
#{orgCode,jdbcType=VARCHAR}, #{orgName,jdbcType=VARCHAR}, #{orgNo,jdbcType=VARCHAR},
#{orgShortName,jdbcType=VARCHAR}, #{orgGroup,jdbcType=VARCHAR}, #{orgType,jdbcType=VARCHAR},
#{orgAddress,jdbcType=VARCHAR}, #{parentId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.DicOrg">
update DIC_ORG
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
ORG_CODE = #{orgCode,jdbcType=VARCHAR},
ORG_NAME = #{orgName,jdbcType=VARCHAR},
ORG_NO = #{orgNo,jdbcType=VARCHAR},
......@@ -57,13 +57,13 @@
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, ORG_CODE, ORG_NAME, ORG_NO, ORG_SHORT_NAME,
select ID, CREATE_DATE, CREATE_USERID, "STATE", ORG_CODE, ORG_NAME, ORG_NO, ORG_SHORT_NAME,
ORG_GROUP, ORG_TYPE, ORG_ADDRESS, PARENT_ID
from DIC_ORG
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, ORG_CODE, ORG_NAME, ORG_NO, ORG_SHORT_NAME,
select ID, CREATE_DATE, CREATE_USERID, "STATE", ORG_CODE, ORG_NAME, ORG_NO, ORG_SHORT_NAME,
ORG_GROUP, ORG_TYPE, ORG_ADDRESS, PARENT_ID
from DIC_ORG
</select>
......
......@@ -16,9 +16,9 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerBlock">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SER_BLOCK_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_BLOCK (CREATE_DATE, CREATE_USERID, STATE,
insert into SER_BLOCK (CREATE_DATE, CREATE_USERID, "STATE",
BLOCK_CODE, BLOCK_NAME, RETURN_TYPE
)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
......@@ -29,19 +29,19 @@
update SER_BLOCK
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
BLOCK_CODE = #{blockCode,jdbcType=VARCHAR},
BLOCK_NAME = #{blockName,jdbcType=VARCHAR},
RETURN_TYPE = #{returnType,jdbcType=DECIMAL}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, BLOCK_CODE, BLOCK_NAME, RETURN_TYPE
select ID, CREATE_DATE, CREATE_USERID, "STATE", BLOCK_CODE, BLOCK_NAME, RETURN_TYPE
from SER_BLOCK
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, BLOCK_CODE, BLOCK_NAME, RETURN_TYPE
select ID, CREATE_DATE, CREATE_USERID, "STATE", BLOCK_CODE, BLOCK_NAME, RETURN_TYPE
from SER_BLOCK
</select>
</mapper>
\ No newline at end of file
......@@ -16,7 +16,7 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerDepartment">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_DEPARTMENT_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_DEPARTMENT (CREATE_DATE, CREATE_USERID, "STATE",
ORG_ID, KSBM, KSMC)
......@@ -41,7 +41,6 @@
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", ORG_ID, KSBM, KSMC
from SER_DEPARTMENT
where "STATE" = 1
</select>
<select id="selectSummaryDept" resultMap="BaseResultMap">
select DEPT_CODE as KSBM,DEPT_NAME as KSMC
......
......@@ -19,7 +19,7 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerDeptDocRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_DEPT_DOC_RS_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_DEPT_DOC_RS (CREATE_DATE, CREATE_USERID, "STATE",
ORG_ID, KSBM, KSMC,
......
......@@ -15,7 +15,7 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerDimValue">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_DIM_VALUE_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_DIM_VALUE (ORG_ID, ITEM_NAME, ITEM_VALUE,
"DATE", DIM_ID)
......
......@@ -11,14 +11,13 @@
<result column="DEPT_CODE" jdbcType="VARCHAR" property="deptCode" />
<result column="DEPT_NAME" jdbcType="VARCHAR" property="deptName" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
delete from SER_DISEASE_DOC_RS
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerDiseaseDocRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_DISEASE_DOC_RS_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_DISEASE_DOC_RS (ORG_ID, DOC_CODE, DOC_NAME,
MDC_CODE, "DATE", DEPT_CODE,
......
......@@ -2,7 +2,10 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bsoft.api.mapper.SerDiseaseMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SerDisease">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="MDC_CODE" jdbcType="VARCHAR" property="mdcCode" />
<result column="MDC_NAME" jdbcType="VARCHAR" property="mdcName" />
<result column="DATE" jdbcType="DECIMAL" property="date" />
......@@ -11,6 +14,7 @@
<result column="LEVEL" jdbcType="DECIMAL" property="level" />
<result column="ORG_ID" jdbcType="DECIMAL" property="orgId" />
<result column="ORG_NAME" jdbcType="VARCHAR" property="orgName" />
<result column="PARENT_CODE" jdbcType="VARCHAR" property="parentCode" />
</resultMap>
<resultMap id="DiseaseLevel" type="com.bsoft.api.model.respmodel.DiseaseLevel">
<id column="ID" jdbcType="DECIMAL" property="id" />
......@@ -23,42 +27,25 @@
<result column="ORG_ID" jdbcType="DECIMAL" property="orgId" />
<result column="ORG_NAME" jdbcType="VARCHAR" property="orgName" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
delete from SER_DISEASE
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerDisease">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_DISEASE_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_DISEASE (
MDC_CODE, MDC_NAME, DATE,
MDC_NUM, PARENT_ID, LEVEL,
ORG_ID, ORG_NAME)
values (
insert into SER_DISEASE (CREATE_DATE, CREATE_USERID, "STATE",
MDC_CODE, MDC_NAME, "DATE",
MDC_NUM, PARENT_ID, "LEVEL",
ORG_ID, ORG_NAME, PARENT_CODE
)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{mdcCode,jdbcType=VARCHAR}, #{mdcName,jdbcType=VARCHAR}, #{date,jdbcType=DECIMAL},
#{mdcNum,jdbcType=DECIMAL}, #{parentId,jdbcType=DECIMAL}, #{level,jdbcType=DECIMAL},
#{orgId,jdbcType=DECIMAL}, #{orgName,jdbcType=VARCHAR})
#{mdcNum,jdbcType=VARCHAR}, #{parentId,jdbcType=DECIMAL}, #{level,jdbcType=DECIMAL},
#{orgId,jdbcType=DECIMAL}, #{orgName,jdbcType=VARCHAR}, #{parentCode,jdbcType=VARCHAR}
)
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerDisease">
update SER_DISEASE
set
MDC_CODE = #{mdcCode,jdbcType=VARCHAR},
MDC_NAME = #{mdcName,jdbcType=VARCHAR},
DATE = #{date,jdbcType=DECIMAL},
MDC_NUM = #{mdcNum,jdbcType=DECIMAL},
PARENT_ID = #{parentId,jdbcType=DECIMAL},
LEVEL = #{level,jdbcType=DECIMAL},
ORG_ID = #{orgId,jdbcType=DECIMAL},
ORG_NAME = #{orgName,jdbcType=VARCHAR}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, MDC_CODE, MDC_NAME, "DATE", MDC_NUM,
PARENT_ID, "LEVEL", ORG_ID, ORG_NAME
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", MDC_CODE, MDC_NAME, "DATE", MDC_NUM,
PARENT_ID, "LEVEL", ORG_ID, ORG_NAME, PARENT_CODE
from SER_DISEASE
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectByCode" resultMap="BaseResultMap">
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.STATE, d.MDC_CODE, d.MDC_NAME, d."DATE",d.MDC_NUM,
......@@ -73,11 +60,6 @@
and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR}
</if>
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, MDC_CODE, MDC_NAME, DATE, MDC_NUM,
PARENT_ID, LEVEL, ORG_ID, ORG_NAME
from SER_DISEASE
</select>
<select id="selectByMdcName" resultMap="BaseResultMap">
select DISTINCT d.ID, d.CREATE_DATE, d.CREATE_USERID, d.STATE, d.MDC_CODE, d.MDC_NAME, d."DATE",d.MDC_NUM,
d.PARENT_ID, d."LEVEL", d.ORG_ID, d.ORG_NAME
......
......@@ -17,7 +17,7 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerDoctor">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_DOCTOR_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_DOCTOR (CREATE_DATE, CREATE_USERID, "STATE",
ORG_ID, YSBM, YSMC,
......
......@@ -8,7 +8,7 @@
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="BLOCK_ID" jdbcType="DECIMAL" property="blockId" />
<result column="PAGE_ID" jdbcType="DECIMAL" property="pageId" />
<result column="WHERE_CLAUSE" jdbcType="VARCHAR" property="whereClause"></result>
<result column="WHERE_CLAUSE" jdbcType="VARCHAR" property="whereClause" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from SER_PAGE_BLOCK_RS
......@@ -16,30 +16,32 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerPageBlockRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SER_PAGE_BLOCK_RS_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_PAGE_BLOCK_RS (CREATE_DATE, CREATE_USERID, STATE,
BLOCK_ID, PAGE_ID,WHERE_CLAUSE)
insert into SER_PAGE_BLOCK_RS (CREATE_DATE, CREATE_USERID, "STATE",
BLOCK_ID, PAGE_ID, WHERE_CLAUSE
)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{blockId,jdbcType=DECIMAL}, #{pageId,jdbcType=DECIMAL},#{whereClause,jdbcType=DECIMAL})
#{blockId,jdbcType=DECIMAL}, #{pageId,jdbcType=DECIMAL}, #{whereClause,jdbcType=VARCHAR}
)
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerPageBlockRs">
update SER_PAGE_BLOCK_RS
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
BLOCK_ID = #{blockId,jdbcType=DECIMAL},
PAGE_ID = #{pageId,jdbcType=DECIMAL},
WHERE_CLAUSE=#{whereClause,jdbcType=DECIMAL}
WHERE_CLAUSE = #{whereClause,jdbcType=VARCHAR}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, BLOCK_ID, PAGE_ID,WHERE_CLAUSE
select ID, CREATE_DATE, CREATE_USERID, "STATE", BLOCK_ID, PAGE_ID, WHERE_CLAUSE
from SER_PAGE_BLOCK_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, BLOCK_ID, PAGE_ID,WHERE_CLAUSE
select ID, CREATE_DATE, CREATE_USERID, "STATE", BLOCK_ID, PAGE_ID, WHERE_CLAUSE
from SER_PAGE_BLOCK_RS
</select>
<select id="selectByPageId" resultMap="BaseResultMap">
......
<?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.bsoft.api.mapper.SerPageDimRsMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SerPageDimRs">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="DIM_ID" jdbcType="DECIMAL" property="dimId" />
<result column="PAGE_ID" jdbcType="DECIMAL" property="pageId" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from SER_PAGE_DIM_RS
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerPageDimRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SER_PAGE_DIM_RS_ID.nextval from dual
</selectKey>
insert into SER_PAGE_DIM_RS (CREATE_DATE, CREATE_USERID, STATE,
DIM_ID, PAGE_ID)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{dimId,jdbcType=DECIMAL}, #{pageId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerPageDimRs">
update SER_PAGE_DIM_RS
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
DIM_ID = #{dimId,jdbcType=DECIMAL},
PAGE_ID = #{pageId,jdbcType=DECIMAL}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, DIM_ID, PAGE_ID
from SER_PAGE_DIM_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, DIM_ID, PAGE_ID
from SER_PAGE_DIM_RS
</select>
</mapper>
\ No newline at end of file
......@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bsoft.api.mapper.SerPageFieldMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SerPageField">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
......@@ -10,13 +10,9 @@
<result column="FIELD_NAME" jdbcType="VARCHAR" property="fieldName" />
<result column="REMARK" jdbcType="VARCHAR" property="remark" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
delete from SER_PAGE_FIELD
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerPageField">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_PAGE_FIELD_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_PAGE_FIELD (CREATE_DATE, CREATE_USERID, "STATE",
FIELD_CODE, FIELD_NAME, REMARK
......@@ -25,21 +21,6 @@
#{fieldCode,jdbcType=VARCHAR}, #{fieldName,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}
)
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerPageField">
update SER_PAGE_FIELD
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
FIELD_CODE = #{fieldCode,jdbcType=VARCHAR},
FIELD_NAME = #{fieldName,jdbcType=VARCHAR},
REMARK = #{remark,jdbcType=VARCHAR}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", FIELD_CODE, FIELD_NAME, REMARK
from SER_PAGE_FIELD
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", FIELD_CODE, FIELD_NAME, REMARK
from SER_PAGE_FIELD
......
......@@ -2,12 +2,12 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bsoft.api.mapper.SerPageMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SerPage">
<id column="ID" jdbcType="DECIMAL" property="id"/>
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate"/>
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid"/>
<result column="STATE" jdbcType="DECIMAL" property="state"/>
<result column="PAGE_CODE" jdbcType="VARCHAR" property="pageCode"/>
<result column="PAGE_NAME" jdbcType="VARCHAR" property="pageName"/>
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="PAGE_CODE" jdbcType="VARCHAR" property="pageCode" />
<result column="PAGE_NAME" jdbcType="VARCHAR" property="pageName" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from SER_PAGE
......@@ -15,9 +15,9 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerPage">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SER_PAGE_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_PAGE (CREATE_DATE, CREATE_USERID, STATE,
insert into SER_PAGE (CREATE_DATE, CREATE_USERID, "STATE",
PAGE_CODE, PAGE_NAME)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{pageCode,jdbcType=VARCHAR}, #{pageName,jdbcType=VARCHAR})
......@@ -26,18 +26,18 @@
update SER_PAGE
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
PAGE_CODE = #{pageCode,jdbcType=VARCHAR},
PAGE_NAME = #{pageName,jdbcType=VARCHAR}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, PAGE_CODE, PAGE_NAME
select ID, CREATE_DATE, CREATE_USERID, "STATE", PAGE_CODE, PAGE_NAME
from SER_PAGE
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, PAGE_CODE, PAGE_NAME
select ID, CREATE_DATE, CREATE_USERID, "STATE", PAGE_CODE, PAGE_NAME
from SER_PAGE
</select>
<select id="selectByCodeAndDim" resultMap="BaseResultMap">
......
......@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bsoft.api.mapper.SerPageProjFieldRsMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SerPageProjFieldRs">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
......@@ -12,13 +12,9 @@
<result column="REMARK" jdbcType="VARCHAR" property="remark" />
<result column="SORT" jdbcType="DECIMAL" property="sort" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
delete from SER_PAGE_PROJ_FIELD_RS
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerPageProjFieldRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_PAGE_PROJ_FIELD_RS_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_PAGE_PROJ_FIELD_RS (CREATE_DATE, CREATE_USERID, "STATE",
PROJ_TYPE, PROJ_ID, FIELD_ID,
......@@ -27,24 +23,6 @@
#{projType,jdbcType=DECIMAL}, #{projId,jdbcType=DECIMAL}, #{fieldId,jdbcType=DECIMAL},
#{remark,jdbcType=VARCHAR}, #{sort,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerPageProjFieldRs">
update SER_PAGE_PROJ_FIELD_RS
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
PROJ_TYPE = #{projType,jdbcType=DECIMAL},
PROJ_ID = #{projId,jdbcType=DECIMAL},
FIELD_ID = #{fieldId,jdbcType=DECIMAL},
REMARK = #{remark,jdbcType=VARCHAR},
SORT = #{sort,jdbcType=DECIMAL}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", PROJ_TYPE, PROJ_ID, FIELD_ID, REMARK,
SORT
from SER_PAGE_PROJ_FIELD_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", PROJ_TYPE, PROJ_ID, FIELD_ID, REMARK,
SORT
......
......@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bsoft.api.mapper.SerPageProjMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SerPageProj">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
......@@ -10,13 +10,9 @@
<result column="PROJ_CODE" jdbcType="VARCHAR" property="projCode" />
<result column="PROJ_TYPE" jdbcType="VARCHAR" property="projType" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
delete from SER_PAGE_PROJ
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerPageProj">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_PAGE_PROJ_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_PAGE_PROJ (CREATE_DATE, CREATE_USERID, "STATE",
PROJ_NAME, PROJ_CODE, PROJ_TYPE
......@@ -25,21 +21,6 @@
#{projName,jdbcType=VARCHAR}, #{projCode,jdbcType=VARCHAR}, #{projType,jdbcType=VARCHAR}
)
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerPageProj">
update SER_PAGE_PROJ
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
PROJ_NAME = #{projName,jdbcType=VARCHAR},
PROJ_CODE = #{projCode,jdbcType=VARCHAR},
PROJ_TYPE = #{projType,jdbcType=VARCHAR}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", PROJ_NAME, PROJ_CODE, PROJ_TYPE
from SER_PAGE_PROJ
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", PROJ_NAME, PROJ_CODE, PROJ_TYPE
from SER_PAGE_PROJ
......
......@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bsoft.api.mapper.SerPageProjValueMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SerPageProjValue">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
......@@ -26,13 +26,9 @@
<result column="FIELD_VALUE" jdbcType="VARCHAR" property="fieldValue" />
<result column="FIELD_UNIT" jdbcType="VARCHAR" property="fieldUnit" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
delete from SER_PAGE_PROJ_VALUE
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerPageProjValue">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_PAGE_PROJ_VALUE_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_PAGE_PROJ_VALUE (CREATE_DATE, CREATE_USERID, "STATE",
DEPT_CODE, DATE_FILTER, DATA_CATEGORY,
......@@ -43,27 +39,6 @@
#{projType,jdbcType=DECIMAL}, #{projId,jdbcType=DECIMAL}, #{fieldId,jdbcType=DECIMAL},
#{fieldValue,jdbcType=VARCHAR}, #{fieldUnit,jdbcType=VARCHAR})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerPageProjValue">
update SER_PAGE_PROJ_VALUE
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
DEPT_CODE = #{deptCode,jdbcType=VARCHAR},
DATE_FILTER = #{dateFilter,jdbcType=DECIMAL},
DATA_CATEGORY = #{dataCategory,jdbcType=VARCHAR},
PROJ_TYPE = #{projType,jdbcType=DECIMAL},
PROJ_ID = #{projId,jdbcType=DECIMAL},
FIELD_ID = #{fieldId,jdbcType=DECIMAL},
FIELD_VALUE = #{fieldValue,jdbcType=VARCHAR},
FIELD_UNIT = #{fieldUnit,jdbcType=VARCHAR}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", DEPT_CODE, DATE_FILTER, DATA_CATEGORY,
PROJ_TYPE, PROJ_ID, FIELD_ID, FIELD_VALUE, FIELD_UNIT
from SER_PAGE_PROJ_VALUE
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", DEPT_CODE, DATE_FILTER, DATA_CATEGORY,
PROJ_TYPE, PROJ_ID, FIELD_ID, FIELD_VALUE, FIELD_UNIT
......
......@@ -16,7 +16,7 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerPageValueConfig">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_PAGE_VALUE_CONFIG_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_PAGE_VALUE_CONFIG (CREATE_DATE, CREATE_USERID, "STATE",
PAGE, PAGE_NAME, SQLSTR
......
......@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bsoft.api.mapper.SerProjMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SerProj">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
......@@ -12,6 +12,7 @@
<result column="IS_BUDGET" jdbcType="DECIMAL" property="isBudget" />
<result column="TYPE_STATE" jdbcType="DECIMAL" property="typeState" />
<result column="SORT" jdbcType="DECIMAL" property="sort" />
<result column="PARENT" jdbcType="DECIMAL" property="parent" />
</resultMap>
<resultMap id="Summary" type="com.bsoft.api.model.respmodel.Summary">
<result column="DEPT_CODE" jdbcType="VARCHAR" property="deptCode" />
......@@ -26,7 +27,7 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerProj">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_PROJ_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_PROJ (CREATE_DATE, CREATE_USERID, "STATE",
"TYPE", PROJ_TYPE, PROJ_NAME,
......
<?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.bsoft.api.mapper.SerProjValueHistoryMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SerProjValueHistory">
<result column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="PROJ_ID" jdbcType="DECIMAL" property="projId" />
<result column="QNZ" jdbcType="DECIMAL" property="qnz" />
<result column="WQQS" jdbcType="DECIMAL" property="wqqs" />
<result column="LS" jdbcType="DECIMAL" property="ls" />
<result column="MB" jdbcType="DECIMAL" property="mb" />
<result column="CSYSZ" jdbcType="DECIMAL" property="csysz" />
<result column="CSYSZ_TB" jdbcType="DECIMAL" property="csyszTb" />
<result column="YSZ" jdbcType="DECIMAL" property="ysz" />
<result column="YSZ_TB" jdbcType="DECIMAL" property="yszTb" />
<result column="SZ" jdbcType="DECIMAL" property="sz" />
<result column="ZXPL" jdbcType="DECIMAL" property="zxpl" />
<result column="DATE" jdbcType="DECIMAL" property="date" />
<result column="DEPT_CODE" jdbcType="VARCHAR" property="deptCode" />
<result column="SORT" jdbcType="DECIMAL" property="sort" />
<result column="VERSION" jdbcType="VARCHAR" property="version" />
<result column="QNZ_UNIT" jdbcType="VARCHAR" property="qnzUnit" />
<result column="CSYSZ_UNIT" jdbcType="VARCHAR" property="csyszUnit" />
<result column="YSZ_UNIT" jdbcType="VARCHAR" property="yszUnit" />
<result column="SZ_UNIT" jdbcType="VARCHAR" property="szUnit" />
<result column="WQQS_ZYPZ_JS" jdbcType="DECIMAL" property="wqqsZypzJs" />
<result column="DEPT_NAME" jdbcType="VARCHAR" property="deptName" />
</resultMap>
<insert id="insert" parameterType="com.bsoft.api.model.SerProjValueHistory">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_PROJ_VALUE_HISTORY_ID.nextval from dual
</selectKey>
insert into SER_PROJ_VALUE_HISTORY (CREATE_DATE, CREATE_USERID, "STATE",
PROJ_ID, QNZ, WQQS,
LS, MB, CSYSZ, CSYSZ_TB,
YSZ, YSZ_TB, SZ, ZXPL,
"DATE", DEPT_CODE, SORT,
VERSION, QNZ_UNIT, CSYSZ_UNIT,
YSZ_UNIT, SZ_UNIT, WQQS_ZYPZ_JS,
DEPT_NAME)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{projId,jdbcType=DECIMAL}, #{qnz,jdbcType=DECIMAL}, #{wqqs,jdbcType=DECIMAL},
#{ls,jdbcType=DECIMAL}, #{mb,jdbcType=DECIMAL}, #{csysz,jdbcType=DECIMAL}, #{csyszTb,jdbcType=DECIMAL},
#{ysz,jdbcType=DECIMAL}, #{yszTb,jdbcType=DECIMAL}, #{sz,jdbcType=DECIMAL}, #{zxpl,jdbcType=DECIMAL},
#{date,jdbcType=DECIMAL}, #{deptCode,jdbcType=VARCHAR}, #{sort,jdbcType=DECIMAL},
#{version,jdbcType=VARCHAR}, #{qnzUnit,jdbcType=VARCHAR}, #{csyszUnit,jdbcType=VARCHAR},
#{yszUnit,jdbcType=VARCHAR}, #{szUnit,jdbcType=VARCHAR}, #{wqqsZypzJs,jdbcType=DECIMAL},
#{deptName,jdbcType=VARCHAR})
</insert>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", PROJ_ID, QNZ, WQQS, LS, MB, CSYSZ,
CSYSZ_TB, YSZ, YSZ_TB, SZ, ZXPL, "DATE", DEPT_CODE, SORT, VERSION, QNZ_UNIT, CSYSZ_UNIT,
YSZ_UNIT, SZ_UNIT, WQQS_ZYPZ_JS, DEPT_NAME
from SER_PROJ_VALUE_HISTORY
</select>
<update id="copyValue">
insert into SER_PROJ_VALUE_HISTORY("ID","STATE", "PROJ_ID", "QNZ", "WQQS", "LS", "MB", "CSYSZ", "CSYSZ_TB", "YSZ",
"YSZ_TB", "SZ", "ZXPL", "DATE", "DEPT_CODE", "SORT", "VERSION", "QNZ_UNIT", "CSYSZ_UNIT", "YSZ_UNIT", "SZ_UNIT",
"WQQS_ZYPZ_JS", "DEPT_NAME")
select SEQ_SER_PROJ_VALUE_HISTORY_ID.NEXTVAL,"STATE", "PROJ_ID", "QNZ", "WQQS", "LS", "MB", "CSYSZ", "CSYSZ_TB",
"YSZ", "YSZ_TB", "SZ", "ZXPL", "DATE", "DEPT_CODE", "SORT", "VERSION", "QNZ_UNIT", "CSYSZ_UNIT", "YSZ_UNIT",
"SZ_UNIT", "WQQS_ZYPZ_JS", "DEPT_NAME"
from SER_PROJ_VALUE;
</update>
</mapper>
\ No newline at end of file
......@@ -2,20 +2,20 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bsoft.api.mapper.SerProjValueMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SerProjValue">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="PROJ_ID" jdbcType="DECIMAL" property="projId" />
<result column="QNZ" jdbcType="DECIMAL" property="qnz" />
<result column="WQQS" jdbcType="DECIMAL" property="wqqs" />
<result column="LS" jdbcType="VARCHAR" property="ls" />
<result column="LS" jdbcType="DECIMAL" property="ls" />
<result column="MB" jdbcType="DECIMAL" property="mb" />
<result column="CSYSZ" jdbcType="VARCHAR" property="csysz" />
<result column="CSYSZ" jdbcType="DECIMAL" property="csysz" />
<result column="CSYSZ_TB" jdbcType="DECIMAL" property="csyszTb" />
<result column="YSZ" jdbcType="VARCHAR" property="ysz" />
<result column="YSZ" jdbcType="DECIMAL" property="ysz" />
<result column="YSZ_TB" jdbcType="DECIMAL" property="yszTb" />
<result column="SZ" jdbcType="VARCHAR" property="sz" />
<result column="SZ" jdbcType="DECIMAL" property="sz" />
<result column="ZXPL" jdbcType="DECIMAL" property="zxpl" />
<result column="DATE" jdbcType="DECIMAL" property="date" />
<result column="DEPT_CODE" jdbcType="VARCHAR" property="deptCode" />
......@@ -25,7 +25,9 @@
<result column="CSYSZ_UNIT" jdbcType="VARCHAR" property="csyszUnit" />
<result column="YSZ_UNIT" jdbcType="VARCHAR" property="yszUnit" />
<result column="SZ_UNIT" jdbcType="VARCHAR" property="szUnit" />
<result column="HOSCODE" jdbcType="VARCHAR" property="hosCode" />
<result column="WQQS_ZYPZ_JS" jdbcType="DECIMAL" property="wqqsZypzJs" />
<result column="DEPT_NAME" jdbcType="VARCHAR" property="deptName" />
<result column="HOSCODE" jdbcType="VARCHAR" property="hoscode" />
</resultMap>
<resultMap id="SerProjValueResp" extends="BaseResultMap" type="com.bsoft.api.model.respmodel.SerProjValueResp">
<result column="PROJ_NAME" jdbcType="VARCHAR" property="projName"/>
......@@ -37,29 +39,31 @@
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerProjValue">
<selectKey keyProperty="id" order="BEFORE" resultType="java.math.BigDecimal">
select SEQ_SER_PROJ_VALUE_ID.nextval from dual
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_PROJ_VALUE (ID,CREATE_DATE, CREATE_USERID, "STATE",
insert into SER_PROJ_VALUE (CREATE_DATE, CREATE_USERID, "STATE",
PROJ_ID, QNZ, WQQS,
LS, MB, CSYSZ, CSYSZ_TB,
YSZ, YSZ_TB, SZ, ZXPL,
"DATE", DEPT_CODE, SORT,
`DATE`, DEPT_CODE, SORT,
VERSION, QNZ_UNIT, CSYSZ_UNIT,
YSZ_UNIT, SZ_UNIT,HOSCODE)
values (#{id,jdbcType=DECIMAL},#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
YSZ_UNIT, SZ_UNIT, WQQS_ZYPZ_JS,
DEPT_NAME, HOSCODE)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{projId,jdbcType=DECIMAL}, #{qnz,jdbcType=DECIMAL}, #{wqqs,jdbcType=DECIMAL},
#{ls,jdbcType=DECIMAL}, #{mb,jdbcType=DECIMAL}, #{csysz,jdbcType=DECIMAL}, #{csyszTb,jdbcType=DECIMAL},
#{ysz,jdbcType=DECIMAL}, #{yszTb,jdbcType=DECIMAL}, #{sz,jdbcType=DECIMAL}, #{zxpl,jdbcType=DECIMAL},
#{date,jdbcType=DECIMAL}, #{deptCode,jdbcType=VARCHAR}, #{sort,jdbcType=DECIMAL},
#{version,jdbcType=VARCHAR}, #{qnzUnit,jdbcType=VARCHAR}, #{csyszUnit,jdbcType=VARCHAR},
#{yszUnit,jdbcType=VARCHAR}, #{szUnit,jdbcType=VARCHAR}, #{hosCode,jdbcType=VARCHAR})
#{yszUnit,jdbcType=VARCHAR}, #{szUnit,jdbcType=VARCHAR}, #{wqqsZypzJs,jdbcType=DECIMAL},
#{deptName,jdbcType=VARCHAR}, #{hoscode,jdbcType=VARCHAR})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SerProjValue">
update SER_PROJ_VALUE
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
`STATE` = #{state,jdbcType=DECIMAL},
PROJ_ID = #{projId,jdbcType=DECIMAL},
QNZ = #{qnz,jdbcType=DECIMAL},
WQQS = #{wqqs,jdbcType=DECIMAL},
......@@ -90,9 +94,9 @@
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, "STATE", PROJ_ID, QNZ, WQQS, LS, MB, CSYSZ,
select ID, CREATE_DATE, CREATE_USERID, `STATE`, PROJ_ID, QNZ, WQQS, LS, MB, CSYSZ,
CSYSZ_TB, YSZ, YSZ_TB, SZ, ZXPL, "DATE", DEPT_CODE, SORT, VERSION, QNZ_UNIT, CSYSZ_UNIT,
YSZ_UNIT, SZ_UNIT, HOSCODE
YSZ_UNIT, SZ_UNIT, WQQS_ZYPZ_JS, DEPT_NAME, HOSCODE
from SER_PROJ_VALUE
</select>
<select id="selectValue" resultMap="SerProjValueResp">
......
......@@ -19,7 +19,7 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SerProjValueSz">
<selectKey keyProperty="id" order="AFTER" resultType="java.math.BigDecimal">
select SEQ_SER_PROJ_VALUE_SZ_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SER_PROJ_VALUE_SZ (CREATE_DATE, CREATE_USERID, "STATE",
PROJ_ID, SZ, ZXPL, "DATE",
......@@ -56,7 +56,7 @@
select *
from SER_PROJ_VALUE_SZ
where STATE = 1 and PROJ_ID = #{projId,jdbcType=DECIMAL}
and TO_NUMBER(SUBSTR("DATE", 1, 4)) = #{date,jdbcType=DECIMAL}
and LEFT("DATE",4) = #{date,jdbcType=DECIMAL}
and DEPT_CODE = #{deptCode,jdbcType=VARCHAR} and HOSCODE = #{hosCode,jdbcType=VARCHAR}
order by "DATE" desc
</select>
......
......@@ -3,6 +3,9 @@
<mapper namespace="com.bsoft.api.mapper.SysMenuMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SysMenu">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATA" jdbcType="TIMESTAMP" property="createData" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="MENU_NAME" jdbcType="VARCHAR" property="menuName" />
<result column="MENU_URL" jdbcType="VARCHAR" property="menuUrl" />
<result column="MENU_IMAGE" jdbcType="VARCHAR" property="menuImage" />
......@@ -17,35 +20,39 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysMenu">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_MENU_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SYS_MENU (
insert into SYS_MENU (CREATE_DATA, CREATE_USERID, "STATE",
MENU_NAME, MENU_URL, MENU_IMAGE,
PARENT_ID,PAGE_CODE,SORT)
values (
#{menuName,jdbcType=VARCHAR}, #{menuUrl,jdbcType=VARCHAR}, #{menuImage,jdbcType=VARCHAR},
PARENT_ID, PAGE_CODE, SORT
)
values (#{createData,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{menuName,jdbcType=VARCHAR}, #{menuUrl,jdbcType=VARCHAR}, #{menuImage,jdbcType=VARCHAR},
#{parentId,jdbcType=DECIMAL},#{pageCode,jdbcType=VARCHAR},#{sort,jdbcType=DECIMAL})
#{parentId,jdbcType=DECIMAL}, #{pageCode,jdbcType=VARCHAR}, #{sort,jdbcType=DECIMAL}
)
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysMenu">
update SYS_MENU
set
set CREATE_DATA = #{createData,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
MENU_NAME = #{menuName,jdbcType=VARCHAR},
MENU_URL = #{menuUrl,jdbcType=VARCHAR},
MENU_IMAGE = #{menuImage,jdbcType=VARCHAR},
PARENT_ID = #{parentId,jdbcType=DECIMAL},
PAGE_CODE=#{pageCode,jdbcType=VARCHAR},
SORT=#{sort,jdbcType=DECIMAL}
PAGE_CODE = #{pageCode,jdbcType=VARCHAR},
SORT = #{sort,jdbcType=DECIMAL}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID,MENU_NAME, MENU_URL, MENU_IMAGE, PARENT_ID,PAGE_CODE,SORT
select ID, CREATE_DATA, CREATE_USERID, "STATE", MENU_NAME, MENU_URL, MENU_IMAGE,
PARENT_ID, PAGE_CODE, SORT
from SYS_MENU
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID,MENU_NAME, MENU_URL, MENU_IMAGE, PARENT_ID
select ID, CREATE_DATA, CREATE_USERID, "STATE", MENU_NAME, MENU_URL, MENU_IMAGE,
PARENT_ID, PAGE_CODE, SORT
from SYS_MENU
</select>
<select id="selectMenuByUser" resultMap="sysMenuResultMap">
......
<?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.bsoft.api.mapper.SysOrgMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SysOrg">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATA" jdbcType="TIMESTAMP" property="createData" />
<result column="CREATE_USERID" jdbcType="VARCHAR" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="ORG_CODE" jdbcType="VARCHAR" property="orgCode" />
<result column="ORG_NAME" jdbcType="VARCHAR" property="orgName" />
<result column="ORG_NO" jdbcType="VARCHAR" property="orgNo" />
<result column="ORG_SHORT_NAME" jdbcType="VARCHAR" property="orgShortName" />
<result column="ORG_GROUP" jdbcType="VARCHAR" property="orgGroup" />
<result column="ORG_TYPE" jdbcType="VARCHAR" property="orgType" />
<result column="ORG_ADDRESS" jdbcType="VARCHAR" property="orgAddress" />
<result column="PARENT_ID" jdbcType="DECIMAL" property="parentId" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from SYS_ORG
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysOrg">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_ORG_ID.nextval from dual
</selectKey>
insert into SYS_ORG (CREATE_DATA, CREATE_USERID, STATE,
ORG_CODE, ORG_NAME, ORG_NO,
ORG_SHORT_NAME, ORG_GROUP, ORG_TYPE,
ORG_ADDRESS, PARENT_ID)
values (#{createData,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=VARCHAR}, #{state,jdbcType=DECIMAL},
#{orgCode,jdbcType=VARCHAR}, #{orgName,jdbcType=VARCHAR}, #{orgNo,jdbcType=VARCHAR},
#{orgShortName,jdbcType=VARCHAR}, #{orgGroup,jdbcType=VARCHAR}, #{orgType,jdbcType=VARCHAR},
#{orgAddress,jdbcType=VARCHAR}, #{parentId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysOrg">
update SYS_ORG
set CREATE_DATA = #{createData,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=VARCHAR},
STATE = #{state,jdbcType=DECIMAL},
ORG_CODE = #{orgCode,jdbcType=VARCHAR},
ORG_NAME = #{orgName,jdbcType=VARCHAR},
ORG_NO = #{orgNo,jdbcType=VARCHAR},
ORG_SHORT_NAME = #{orgShortName,jdbcType=VARCHAR},
ORG_GROUP = #{orgGroup,jdbcType=VARCHAR},
ORG_TYPE = #{orgType,jdbcType=VARCHAR},
ORG_ADDRESS = #{orgAddress,jdbcType=VARCHAR},
PARENT_ID = #{parentId,jdbcType=DECIMAL}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATA, CREATE_USERID, STATE, ORG_CODE, ORG_NAME, ORG_NO, ORG_SHORT_NAME,
ORG_GROUP, ORG_TYPE, ORG_ADDRESS, PARENT_ID
from SYS_ORG
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATA, CREATE_USERID, STATE, ORG_CODE, ORG_NAME, ORG_NO, ORG_SHORT_NAME,
ORG_GROUP, ORG_TYPE, ORG_ADDRESS, PARENT_ID
from SYS_ORG
</select>
</mapper>
\ No newline at end of file
<?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.bsoft.api.mapper.SysProjectMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SysProject">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="PROJECT_CODE" jdbcType="VARCHAR" property="projectCode" />
<result column="PROJECT_NAME" jdbcType="VARCHAR" property="projectName" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from SYS_PROJECT
where ID = #{id,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysProject">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_PROJECT_ID.nextval from dual
</selectKey>
insert into SYS_PROJECT (CREATE_DATE, CREATE_USERID, STATE,
PROJECT_CODE, PROJECT_NAME)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{projectCode,jdbcType=VARCHAR}, #{projectName,jdbcType=VARCHAR})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysProject">
update SYS_PROJECT
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
PROJECT_CODE = #{projectCode,jdbcType=VARCHAR},
PROJECT_NAME = #{projectName,jdbcType=VARCHAR}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, PROJECT_CODE, PROJECT_NAME
from SYS_PROJECT
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, PROJECT_CODE, PROJECT_NAME
from SYS_PROJECT
</select>
</mapper>
\ No newline at end of file
......@@ -15,9 +15,9 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysRole">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_ROLE_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SYS_ROLE (CREATE_DATE, CREATE_USERID, STATE,
insert into SYS_ROLE (CREATE_DATE, CREATE_USERID, "STATE",
ROLE_NAME, ROLE_CODE)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{roleName,jdbcType=VARCHAR}, #{roleCode,jdbcType=DECIMAL})
......@@ -26,18 +26,18 @@
update SYS_ROLE
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
ROLE_NAME = #{roleName,jdbcType=VARCHAR},
ROLE_CODE = #{roleCode,jdbcType=DECIMAL}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, ROLE_NAME, ROLE_CODE
select ID, CREATE_DATE, CREATE_USERID, "STATE", ROLE_NAME, ROLE_CODE
from SYS_ROLE
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, ROLE_NAME, ROLE_CODE
select ID, CREATE_DATE, CREATE_USERID, "STATE", ROLE_NAME, ROLE_CODE
from SYS_ROLE
</select>
</mapper>
\ No newline at end of file
......@@ -15,9 +15,9 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysRoleMenuRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_ROLE_MENU_RS_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SYS_ROLE_MENU_RS (CREATE_DATE, CREATE_USERID, STATE,
insert into SYS_ROLE_MENU_RS (CREATE_DATE, CREATE_USERID, "STATE",
MENU_ID, ROLE_ID)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{menuId,jdbcType=DECIMAL}, #{roleId,jdbcType=DECIMAL})
......@@ -26,18 +26,18 @@
update SYS_ROLE_MENU_RS
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
MENU_ID = #{menuId,jdbcType=DECIMAL},
ROLE_ID = #{roleId,jdbcType=DECIMAL}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, MENU_ID, ROLE_ID
select ID, CREATE_DATE, CREATE_USERID, "STATE", MENU_ID, ROLE_ID
from SYS_ROLE_MENU_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, MENU_ID, ROLE_ID
select ID, CREATE_DATE, CREATE_USERID, "STATE", MENU_ID, ROLE_ID
from SYS_ROLE_MENU_RS
</select>
</mapper>
\ No newline at end of file
......@@ -2,21 +2,21 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bsoft.api.mapper.SysUserMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SysUser">
<id column="ID" jdbcType="DECIMAL" property="id"/>
<!-- <result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate"/>-->
<!-- <result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid"/>-->
<!-- <result column="STATE" jdbcType="DECIMAL" property="state"/>-->
<result column="USER_CODE" jdbcType="VARCHAR" property="userCode"/>
<result column="USER_NAME" jdbcType="VARCHAR" property="userName"/>
<result column="PASSWORD" jdbcType="VARCHAR" property="password"/>
<result column="IDCARD" jdbcType="VARCHAR" property="idcard"/>
<result column="SEX" jdbcType="VARCHAR" property="sex"/>
<result column="MOBILE" jdbcType="VARCHAR" property="mobile"/>
<result column="PAGE_COUNT" jdbcType="DECIMAL" property="pageCount"/>
<result column="ERROR_COUNT" jdbcType="DECIMAL" property="errorCount"/>
<result column="ERROR_TIME" jdbcType="TIMESTAMP" property="errorTime"/>
<result column="LAST_TIME" jdbcType="TIMESTAMP" property="lastTime"/>
<result column="LAST_IP" jdbcType="VARCHAR" property="lastIp"/>
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="USER_CODE" jdbcType="VARCHAR" property="userCode" />
<result column="USER_NAME" jdbcType="VARCHAR" property="userName" />
<result column="PASSWORD" jdbcType="VARCHAR" property="password" />
<result column="IDCARD" jdbcType="VARCHAR" property="idcard" />
<result column="SEX" jdbcType="VARCHAR" property="sex" />
<result column="MOBILE" jdbcType="VARCHAR" property="mobile" />
<result column="PAGE_COUNT" jdbcType="DECIMAL" property="pageCount" />
<result column="ERROR_COUNT" jdbcType="DECIMAL" property="errorCount" />
<result column="ERROR_TIME" jdbcType="TIMESTAMP" property="errorTime" />
<result column="LAST_TIME" jdbcType="TIMESTAMP" property="lastTime" />
<result column="LAST_IP" jdbcType="VARCHAR" property="lastIp" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from SYS_USER
......@@ -24,14 +24,14 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysUser">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_USER_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SYS_USER (
USER_CODE, USER_NAME, PASSWORD,
insert into SYS_USER (CREATE_DATE, CREATE_USERID, "STATE",
USER_CODE, USER_NAME, "PASSWORD",
IDCARD, SEX, MOBILE,
PAGE_COUNT, ERROR_COUNT, ERROR_TIME,
LAST_TIME, LAST_IP)
values (
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{userCode,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{idcard,jdbcType=VARCHAR}, #{sex,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR},
#{pageCount,jdbcType=DECIMAL}, #{errorCount,jdbcType=DECIMAL}, #{errorTime,jdbcType=TIMESTAMP},
......@@ -39,10 +39,12 @@
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysUser">
update SYS_USER
set
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
USER_CODE = #{userCode,jdbcType=VARCHAR},
USER_NAME = #{userName,jdbcType=VARCHAR},
PASSWORD = #{password,jdbcType=VARCHAR},
"PASSWORD" = #{password,jdbcType=VARCHAR},
IDCARD = #{idcard,jdbcType=VARCHAR},
SEX = #{sex,jdbcType=VARCHAR},
MOBILE = #{mobile,jdbcType=VARCHAR},
......@@ -54,14 +56,14 @@
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_CODE, USER_NAME, PASSWORD, IDCARD,
SEX, MOBILE, PAGE_COUNT, ERROR_COUNT, ERROR_TIME, LAST_TIME, LAST_IP
select ID, CREATE_DATE, CREATE_USERID, "STATE", USER_CODE, USER_NAME, "PASSWORD",
IDCARD, SEX, MOBILE, PAGE_COUNT, ERROR_COUNT, ERROR_TIME, LAST_TIME, LAST_IP
from SYS_USER
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_CODE, USER_NAME, PASSWORD, IDCARD,
SEX, MOBILE, PAGE_COUNT, ERROR_COUNT, ERROR_TIME, LAST_TIME, LAST_IP
select ID, CREATE_DATE, CREATE_USERID, "STATE", USER_CODE, USER_NAME, "PASSWORD",
IDCARD, SEX, MOBILE, PAGE_COUNT, ERROR_COUNT, ERROR_TIME, LAST_TIME, LAST_IP
from SYS_USER
</select>
<select id="selectByCode" resultMap="BaseResultMap">
......
......@@ -15,9 +15,9 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysUserMenuRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_USER_MENU_RS_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SYS_USER_MENU_RS (CREATE_DATE, CREATE_USERID, STATE,
insert into SYS_USER_MENU_RS (CREATE_DATE, CREATE_USERID, "STATE",
USER_ID, MENU_ID)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{userId,jdbcType=DECIMAL}, #{menuId,jdbcType=DECIMAL})
......@@ -26,18 +26,18 @@
update SYS_USER_MENU_RS
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
USER_ID = #{userId,jdbcType=DECIMAL},
MENU_ID = #{menuId,jdbcType=DECIMAL}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_ID, MENU_ID
select ID, CREATE_DATE, CREATE_USERID, "STATE", USER_ID, MENU_ID
from SYS_USER_MENU_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_ID, MENU_ID
select ID, CREATE_DATE, CREATE_USERID, "STATE", USER_ID, MENU_ID
from SYS_USER_MENU_RS
</select>
</mapper>
\ No newline at end of file
......@@ -15,9 +15,9 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysUserOrgRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_USER_ORG_RS_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SYS_USER_ORG_RS (CREATE_DATE, CREATE_USERID, STATE,
insert into SYS_USER_ORG_RS (CREATE_DATE, CREATE_USERID, "STATE",
USER_ID, ORG_ID)
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{userId,jdbcType=DECIMAL}, #{orgId,jdbcType=DECIMAL})
......@@ -26,18 +26,18 @@
update SYS_USER_ORG_RS
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
STATE = #{state,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
USER_ID = #{userId,jdbcType=DECIMAL},
ORG_ID = #{orgId,jdbcType=DECIMAL}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_ID, ORG_ID
select ID, CREATE_DATE, CREATE_USERID, "STATE", USER_ID, ORG_ID
from SYS_USER_ORG_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID, CREATE_DATE, CREATE_USERID, STATE, USER_ID, ORG_ID
select ID, CREATE_DATE, CREATE_USERID, "STATE", USER_ID, ORG_ID
from SYS_USER_ORG_RS
</select>
</mapper>
\ No newline at end of file
......@@ -3,6 +3,9 @@
<mapper namespace="com.bsoft.api.mapper.SysUserRoleRsMapper">
<resultMap id="BaseResultMap" type="com.bsoft.api.model.SysUserRoleRs">
<id column="ID" jdbcType="DECIMAL" property="id" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
<result column="CREATE_USERID" jdbcType="DECIMAL" property="createUserid" />
<result column="STATE" jdbcType="DECIMAL" property="state" />
<result column="USER_ID" jdbcType="DECIMAL" property="userId" />
<result column="ROLE_ID" jdbcType="DECIMAL" property="roleId" />
</resultMap>
......@@ -12,27 +15,29 @@
</delete>
<insert id="insert" parameterType="com.bsoft.api.model.SysUserRoleRs">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
select SEQ_SYS_USER_ROLE_RS_ID.nextval from dual
SELECT LAST_INSERT_ID()
</selectKey>
insert into SYS_USER_ROLE_RS (
insert into SYS_USER_ROLE_RS (CREATE_DATE, CREATE_USERID, "STATE",
USER_ID, ROLE_ID)
values (
values (#{createDate,jdbcType=TIMESTAMP}, #{createUserid,jdbcType=DECIMAL}, #{state,jdbcType=DECIMAL},
#{userId,jdbcType=DECIMAL}, #{roleId,jdbcType=DECIMAL})
</insert>
<update id="updateByPrimaryKey" parameterType="com.bsoft.api.model.SysUserRoleRs">
update SYS_USER_ROLE_RS
set
set CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
CREATE_USERID = #{createUserid,jdbcType=DECIMAL},
"STATE" = #{state,jdbcType=DECIMAL},
USER_ID = #{userId,jdbcType=DECIMAL},
ROLE_ID = #{roleId,jdbcType=DECIMAL}
where ID = #{id,jdbcType=DECIMAL}
</update>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select ID,USER_ID, ROLE_ID
select ID, CREATE_DATE, CREATE_USERID, "STATE", USER_ID, ROLE_ID
from SYS_USER_ROLE_RS
where ID = #{id,jdbcType=DECIMAL}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select ID,USER_ID, ROLE_ID
select ID, CREATE_DATE, CREATE_USERID, "STATE", USER_ID, ROLE_ID
from SYS_USER_ROLE_RS
</select>
<select id="selectRoleByUser" resultMap="BaseResultMap">
......
......@@ -6,7 +6,7 @@
<!-- 引入配置文件 -->
<properties resource="./application-dev.properties"/>
<context id="Oracle" targetRuntime="MyBatis3Simple" defaultModelType="flat">
<context id="MySql" targetRuntime="MyBatis3Simple" defaultModelType="flat">
<property name="beginningDelimiter" value="`"/>
<property name="endingDelimiter" value="`"/>
<!-- 生成的文件编码 -->
......@@ -42,9 +42,95 @@
<!-- 生成映射接口配置 -->
<javaClientGenerator targetPackage="com.bsoft.api.mapper" targetProject="src/main/java" type="XMLMAPPER"/>
<table tableName="SER_PROJ_VALUE_SZ">
<generatedKey column="id" sqlStatement="select SEQ_SER_PROJ_VALUE_SZ_ID.nextval from dual" identity="true"/>
<table schema="scml_zp_cs" tableName="dic_dim">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="dic_ind">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="dic_org">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_block">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_department">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_dept_doc_rs">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_dim_value">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_disease">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_disease_doc_rs">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_doctor">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_page">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_page_block_rs">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_page_field">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_page_proj">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_page_proj_field_rs">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_page_proj_value">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_page_value_config">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_proj">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_proj_value">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="ser_proj_value_sz">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="sys_menu">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="sys_org">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="sys_project">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="sys_role">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="sys_role_menu_rs">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="sys_user">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="sys_user_menu_rs">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="sys_user_org_rs">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
<table schema="scml_zp_cs" tableName="sys_user_role_rs">
<generatedKey column="ID" sqlStatement="Mysql" identity="true"/>
</table>
</context>
</generatorConfiguration>
jdbc.url=jdbc:mysql://192.168.18.55:3306/db_appointment?useUnicode=true&characterEncoding=utf8&useSSL=false&autoReconnect=true&rewriteBatchedStatements=TRUE
jdbc.username=CH
jdbc.password=123456
jdbc.url=jdbc:mysql://192.168.18.176:3306/scml_zp_cs?useUnicode=true&characterEncoding=utf8&useSSL=false&autoReconnect=true&rewriteBatchedStatements=TRUE
jdbc.username=root
jdbc.password=Suvalue2016
jdbc.driverClass=com.mysql.jdbc.Driver
\ No newline at end of file
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