已复制8个文件
已重命名1个文件
已修改20个文件
| | |
| | | if (StringUtils.isNotNull(currentUser) && !currentUser.isAdmin())
|
| | | {
|
| | | String permission = StringUtils.defaultIfEmpty(controllerDataScope.permission(), PermissionContextHolder.getContext());
|
| | | dataScopeFilter(joinPoint, currentUser, controllerDataScope.deptAlias(), controllerDataScope.userAlias(), permission);
|
| | | dataScopeFilter(joinPoint, currentUser, controllerDataScope.deptAlias(), controllerDataScope.userAlias(), controllerDataScope.tenantIdFelid(), permission);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | * @param user ç¨æ·
|
| | | * @param deptAlias é¨é¨å«å
|
| | | * @param userAlias ç¨æ·å«å
|
| | | * @param tenantIdFelid ç§æ·idåæ®µå
|
| | | * @param permission æéå符
|
| | | */
|
| | | public static void dataScopeFilter(JoinPoint joinPoint, SysUser user, String deptAlias, String userAlias, String permission)
|
| | | public static void dataScopeFilter(JoinPoint joinPoint, SysUser user, String deptAlias, String userAlias,String tenantIdFelid, String permission)
|
| | | {
|
| | | StringBuilder sqlString = new StringBuilder();
|
| | | List<String> conditions = new ArrayList<String>();
|
| | |
| | | if (StringUtils.isNotBlank(userAlias))
|
| | | {
|
| | | sqlString.append(StringUtils.format(" OR {}.user_id = {} ", userAlias, user.getUserId()));
|
| | | }else if(StringUtils.isNotBlank(tenantIdFelid)){
|
| | | sqlString.append(StringUtils.format(" OR {}.tenant_id = {} ", tenantIdFelid, user.getTenantId()));
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | public String userAlias() default "";
|
| | |
|
| | | /**
|
| | | * ç§æ·idåæ®µå
|
| | | * @return
|
| | | */
|
| | | public String tenantIdFelid() default "";
|
| | |
|
| | | /**
|
| | | * æéå符ï¼ç¨äºå¤ä¸ªè§è²å¹é
符åè¦æ±çæéï¼é»è®¤æ ¹æ®æé注解@ssè·åï¼å¤ä¸ªæéç¨éå·åé弿¥
|
| | | */
|
| | | public String permission() default "";
|
| | |
| | | package com.ruoyi.project.system.controller;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.ruoyi.common.utils.SecurityUtils;
|
| | | import org.apache.commons.lang3.ArrayUtils;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.security.access.prepost.PreAuthorize;
|
| | |
| | | return error("æ°å¢é¨é¨'" + dept.getDeptName() + "'失败ï¼é¨é¨åç§°å·²åå¨");
|
| | | }
|
| | | dept.setCreateBy(getUsername());
|
| | | dept.setTenantId(SecurityUtils.getLoginUser().getTenantId());
|
| | | return toAjax(deptService.insertDept(dept));
|
| | | }
|
| | |
|
| | |
| | |
|
| | | import java.util.List;
|
| | | import javax.servlet.http.HttpServletResponse;
|
| | |
|
| | | import com.ruoyi.common.utils.SecurityUtils;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.security.access.prepost.PreAuthorize;
|
| | | import org.springframework.validation.annotation.Validated;
|
| | |
| | | return error("æ°å¢å²ä½'" + post.getPostName() + "'失败ï¼å²ä½ç¼ç å·²åå¨");
|
| | | }
|
| | | post.setCreateBy(getUsername());
|
| | | post.setTenantId(SecurityUtils.getLoginUser().getTenantId());
|
| | | return toAjax(postService.insertPost(post));
|
| | | }
|
| | |
|
| | |
| | |
|
| | | import java.util.List;
|
| | | import javax.servlet.http.HttpServletResponse;
|
| | |
|
| | | import com.ruoyi.common.utils.SecurityUtils;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.security.access.prepost.PreAuthorize;
|
| | | import org.springframework.validation.annotation.Validated;
|
| | |
| | | return error("æ°å¢è§è²'" + role.getRoleName() + "'失败ï¼è§è²æéå·²åå¨");
|
| | | }
|
| | | role.setCreateBy(getUsername());
|
| | | role.setTenantId(SecurityUtils.getLoginUser().getTenantId());
|
| | | return toAjax(roleService.insertRole(role));
|
| | |
|
| | | }
|
| | |
| | |
|
| | | /** é¨é¨ç¼å· */
|
| | | private String deptNick;
|
| | | |
| | |
|
| | | private Long tenantId;
|
| | |
|
| | | public Long getTenantId() {
|
| | | return tenantId;
|
| | | }
|
| | |
|
| | | public void setTenantId(Long tenantId) {
|
| | | this.tenantId = tenantId;
|
| | | }
|
| | |
|
| | | /** åé¨é¨ */
|
| | | private List<SysDept> children = new ArrayList<SysDept>();
|
| | |
|
| | |
| | | @Excel(name = "ç¶æ", readConverterExp = "0=æ£å¸¸,1=åç¨")
|
| | | private String status;
|
| | |
|
| | | private Long tenantId;
|
| | |
|
| | | public Long getTenantId() {
|
| | | return tenantId;
|
| | | }
|
| | |
|
| | | public void setTenantId(Long tenantId) {
|
| | | this.tenantId = tenantId;
|
| | | }
|
| | |
|
| | | /** ç¨æ·æ¯å¦å卿¤å²ä½æ è¯ é»è®¤ä¸åå¨ */
|
| | | private boolean flag = false;
|
| | |
|
| | |
| | | import javax.validation.constraints.NotBlank;
|
| | | import javax.validation.constraints.NotNull;
|
| | | import javax.validation.constraints.Size;
|
| | |
|
| | | import com.baomidou.mybatisplus.annotation.FieldFill;
|
| | | import com.baomidou.mybatisplus.annotation.TableField;
|
| | | import org.apache.commons.lang3.builder.ToStringBuilder;
|
| | | import org.apache.commons.lang3.builder.ToStringStyle;
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel;
|
| | |
| | | /** è§è²èåæé */
|
| | | private Set<String> permissions;
|
| | |
|
| | | /**ç§æ·id*/
|
| | | private Long tenantId;
|
| | |
|
| | | public Long getTenantId() {
|
| | | return tenantId;
|
| | | }
|
| | |
|
| | | public void setTenantId(Long tenantId) {
|
| | | this.tenantId = tenantId;
|
| | | }
|
| | |
|
| | | public SysRole()
|
| | | {
|
| | |
|
| | |
| | | * @return
|
| | | */
|
| | | Long maxLevelDeptId(Long deptId);
|
| | |
|
| | | SysDept selectDeptByDeptName(@Param("deptName") String deptName);
|
| | | }
|
| | |
| | | public List<SysDept> selectDeptList(SysDept dept);
|
| | |
|
| | | /**
|
| | | * æ ¹æ®é¨é¨åç§°æ¥è¯¢é¨é¨ä¿¡æ¯
|
| | | *
|
| | | * @param deptName é¨é¨åç§°
|
| | | * @return é¨é¨ä¿¡æ¯éå
|
| | | */
|
| | | public SysDept selectDeptByDeptName(String deptName);
|
| | |
|
| | | /**
|
| | | * æ¥è¯¢é¨é¨æ ç»æä¿¡æ¯
|
| | | *
|
| | | * @param dept é¨é¨ä¿¡æ¯
|
| | |
| | | * @return é¨é¨ä¿¡æ¯éå
|
| | | */
|
| | | @Override
|
| | | @DataScope(deptAlias = "d")
|
| | | @DataScope(tenantIdFelid = "d")
|
| | | public List<SysDept> selectDeptList(SysDept dept)
|
| | | {
|
| | | return deptMapper.selectDeptList(dept);
|
| | | }
|
| | | |
| | |
|
| | | @Override
|
| | | public SysDept selectDeptByDeptName(String deptName) {
|
| | | return deptMapper.selectDeptByDeptName(deptName);
|
| | | }
|
| | |
|
| | | /**
|
| | | * æ¥è¯¢é¨é¨æ ç»æä¿¡æ¯
|
| | | *
|
| | |
| | | package com.ruoyi.project.system.service.impl;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | | import com.ruoyi.common.constant.UserConstants;
|
| | |
| | | * @return å²ä½ä¿¡æ¯éå
|
| | | */
|
| | | @Override
|
| | | @DataScope(tenantIdFelid = "p")
|
| | | public List<SysPost> selectPostList(SysPost post)
|
| | | {
|
| | | return postMapper.selectPostList(post);
|
| | |
| | | * @return è§è²æ°æ®éåä¿¡æ¯
|
| | | */
|
| | | @Override
|
| | | @DataScope(deptAlias = "d")
|
| | | @DataScope(tenantIdFelid = "r")
|
| | | public List<SysRole> selectRoleList(SysRole role)
|
| | | {
|
| | | return roleMapper.selectRoleList(role);
|
| | |
| | | package com.ruoyi.tide.controller; |
| | | |
| | | import cn.hutool.core.collection.CollectionUtil; |
| | | import com.alibaba.fastjson2.JSONObject; |
| | | import com.baomidou.mybatisplus.core.toolkit.IdWorker; |
| | | import com.ruoyi.common.constant.Constants; |
| | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Anonymous; |
| | | import com.ruoyi.framework.security.service.SysLoginService; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.project.system.domain.SysDept; |
| | | import com.ruoyi.project.system.domain.SysUser; |
| | | import com.ruoyi.project.system.service.ISysDeptService; |
| | | import com.ruoyi.project.system.service.ISysUserService; |
| | | import com.ruoyi.tide.pojo.TidePojo; |
| | | import com.ruoyi.tide.utils.TideUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.PreDestroy; |
| | | import javax.annotation.security.PermitAll; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private ISysUserService userService; |
| | | |
| | | @Autowired |
| | | private ISysDeptService deptService; |
| | | |
| | | @ApiOperation(value = "ç»å½") |
| | | @PostMapping("/tideLogin") |
| | |
| | | String defaultPwd = "I73Kj+Mn$+SI";//é»è®¤å¼éå¯ç åºå®åæ» |
| | | // String randomString = TideUtils.getRandomString(12); |
| | | //è´¦å·ä¸åå¨ï¼æ§è¡æ°å¢æä½ |
| | | if(Objects.isNull(user)){ |
| | | if(ObjectUtils.isEmpty(user)){ |
| | | //1.å
æ°å¢ç¨æ·å¯¹åºçå
¬å¸ |
| | | SysDept dept = new SysDept(); |
| | | dept.setParentId(100L);//ç¶å
¬å¸id |
| | | dept.setDeptName(tidePojo.getEnterpriseName()); |
| | | dept.setDeptNick(tidePojo.getEnterpriseName()); |
| | | dept.setOrderNum(0); |
| | | boolean deptNameUnique = deptService.checkDeptNameUnique(dept); |
| | | if (deptNameUnique){ |
| | | deptService.insertDept(dept); |
| | | } |
| | | //æ¥è¯¢å
¬å¸ |
| | | SysDept newSysDept = deptService.selectDeptByDeptName(dept.getDeptName()); |
| | | dept.setDeptId(ObjectUtils.isEmpty(newSysDept)?100L:newSysDept.getDeptId()); |
| | | user = new SysUser(); |
| | | String password = SecurityUtils.encryptPassword(defaultPwd); |
| | | user.setPassword(password); |
| | |
| | | user.setDelFlag("0"); |
| | | user.setPostIds(new Long[]{1L}); |
| | | user.setRoleId(1L); |
| | | user.setRoleIds(new Long[]{2L}); |
| | | user.setDeptIds(new Long[]{100L}); |
| | | user.setRoleIds(new Long[]{2L});//é»è®¤æ®éè§è² |
| | | user.setDeptIds(new Long[]{dept.getDeptId()});//ç»å®å
¬å¸ |
| | | user.setTenantId(dept.getDeptId()); |
| | | userService.insertUser(user); |
| | | } |
| | | Map<String, Object> map = new HashMap<>(); |
| | |
| | | import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | @Component |
| | | @Slf4j |
| | | public class TideUtils { |
| | | private final static String appId = "1205972857687900160"; |
| | | |
| | | private final static String appSecret = "MgzPMDYwMTIwMjYxNzQ2NDA3OTYGqt"; |
| | | public static String APP_ID; |
| | | public static String APP_SECRET; |
| | | |
| | | |
| | | @Value("${inspur.appId}") |
| | | private String appId; |
| | | |
| | | @Value("${inspur.appSecret}") |
| | | private String appSecret; |
| | | |
| | | @Value("${inspur.appId}") |
| | | public void setAppId(String appId) { |
| | | TideUtils.APP_ID = appId; |
| | | } |
| | | |
| | | @Value("${inspur.appSecret}") |
| | | public void setAppSecret(String appSecret) { |
| | | TideUtils.APP_SECRET = appSecret; |
| | | } |
| | | |
| | | // å
ç½å°å |
| | | private final static String ip = "http://10.136.0.8:8083"; |
| | |
| | | xSignSplicingTogether = "x-random=" + xRandom + "&x-time=" + xTime; |
| | | } |
| | | // é
ç½®å 坿¹å¼ä¸å¯é¥ |
| | | HMac hMac = new HMac(HmacAlgorithm.HmacSHA256, appSecret.getBytes()); |
| | | HMac hMac = new HMac(HmacAlgorithm.HmacSHA256, APP_SECRET.getBytes()); |
| | | // å¾åºx-sign |
| | | String xSign = hMac.digestHex(xSignSplicingTogether); |
| | | HashMap<String, String> result = new HashMap<>(); |
| | | result.put("x-time", xTime); |
| | | result.put("x-random", xRandom); |
| | | result.put("x-sign", xSign); |
| | | result.put("appKey", appId); |
| | | result.put("appKey", APP_ID); |
| | | return result; |
| | | } |
| | | |
| | |
| | | xSignSplicingTogether = "x-random=" + xRandom + "&x-time=" + xTime; |
| | | } |
| | | // x-sign å å¯ |
| | | HMac hMac = new HMac(HmacAlgorithm.HmacSHA256, appSecret.getBytes()); |
| | | HMac hMac = new HMac(HmacAlgorithm.HmacSHA256, APP_SECRET.getBytes()); |
| | | String xSign = hMac.digestHex(xSignSplicingTogether); |
| | | HashMap<String, String> result = new HashMap<>(); |
| | | result.put("x-time", xTime); |
| | | result.put("x-random", xRandom); |
| | | result.put("x-sign", xSign); |
| | | result.put("appKey", appId); |
| | | result.put("appKey", APP_ID); |
| | | return result; |
| | | } |
| | | |
| | |
| | | String url = ip + "/cpn/extral/applicationCode/appAuthCheck"; |
| | | JSONObject json = new JSONObject(); |
| | | json.put("code", code); |
| | | json.put("appID", appId); |
| | | json.put("appSecret", appSecret); |
| | | json.put("appID", APP_ID); |
| | | json.put("appSecret", APP_SECRET); |
| | | HashMap<String, String> header = getPostHeader(json.toString()); |
| | | String body = HttpRequest.post(url) |
| | | .headerMap(header, false) |
| | |
| | | public static JSONObject getUserInfo(String token) { |
| | | String url = ip + "/cpn/api/extral/applicationCode/getUserInfoByToken"; |
| | | JSONObject json = new JSONObject(); |
| | | json.put("appID", appId); |
| | | json.put("appID", APP_ID); |
| | | HashMap<String, String> header = getPostHeader(json.toString()); |
| | | header.put("Authorization", token); |
| | | String body = HttpRequest.post(url) |
copy from src/main/resources/application-tide.yml
copy to src/main/resources/application-ccwlxt.yml
| Îļþ´Ó src/main/resources/application-tide.yml ¸´ÖÆ |
| | |
| | | # 项ç®ç¸å
³é
ç½® |
| | | # è¯å¯¼-ä»å¨ç©æµç³»ç»é¡¹ç®ç¸å
³é
ç½® |
| | | inspur: |
| | | appId: 1205971611543404544 |
| | | appSecret: VkyDMDYwMTIwMjYxNzQxNDM2OTItrv |
| | | ruoyi: |
| | | # åç§° |
| | | name: RuoYi |
| | |
| | | druid: |
| | | # ä¸»åºæ°æ®æº |
| | | master: |
| | | url: jdbc:mysql://127.0.0.1:3306/mis-ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://172.17.0.1:3306/mis-ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: root |
| | | password: zttZTT123! |
| | | # ä»åºæ°æ®æº |
| | |
| | | # redis é
ç½® |
| | | redis: |
| | | # å°å |
| | | host: 127.0.0.1 |
| | | # host: 172.17.0.1 |
| | | # host: 127.0.0.1 |
| | | host: 172.17.0.1 |
| | | # 端å£ï¼é»è®¤ä¸º6379 |
| | | port: 6379 |
| | | # æ°æ®åºç´¢å¼ |
| ÎļþÃû´Ó src/main/resources/application-tide.yml ÐÞ¸Ä |
| | |
| | | # 项ç®ç¸å
³é
ç½® |
| | | # è¯å¯¼-éè´ç®¡çç³»ç»é¡¹ç®ç¸å
³é
ç½® |
| | | inspur: |
| | | appId: 1205971212673482752 |
| | | appSecret: d9R2MDYwMTIwMjYxNzQwMDg1OTU4Du |
| | | ruoyi: |
| | | # åç§° |
| | | name: RuoYi |
copy from src/main/resources/application-tide.yml
copy to src/main/resources/application-cwglxt.yml
| Îļþ´Ó src/main/resources/application-tide.yml ¸´ÖÆ |
| | |
| | | # 项ç®ç¸å
³é
ç½® |
| | | # è¯å¯¼-è´¢å¡ç®¡çç³»ç»é¡¹ç®ç¸å
³é
ç½® |
| | | inspur: |
| | | appId: 1205964626886393856 |
| | | appSecret: 2kxXMDYwMTIwMjYxNzEzNTg0MjE91C |
| | | ruoyi: |
| | | # åç§° |
| | | name: RuoYi |
| | |
| | | druid: |
| | | # ä¸»åºæ°æ®æº |
| | | master: |
| | | url: jdbc:mysql://127.0.0.1:3306/mis-ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://10.136.58.65:3306/mis-ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: root |
| | | password: zttZTT123! |
| | | # ä»åºæ°æ®æº |
| | |
| | | # æ°æ®åºç´¢å¼ |
| | | database: 0 |
| | | # å¯ç |
| | | password: zttZTT123! |
| | | # password: 123456 |
| | | # password: zttZTT123! |
| | | password: 123456 |
| | | |
| | | # è¿æ¥è¶
æ¶æ¶é´ |
| | | timeout: 10s |
copy from src/main/resources/application-tide.yml
copy to src/main/resources/application-hbmjxt.yml
| Îļþ´Ó src/main/resources/application-tide.yml ¸´ÖÆ |
| | |
| | | # 项ç®ç¸å
³é
ç½® |
| | | # è¯å¯¼-ç¯ä¿é¨ç¦ç³»ç»é¡¹ç®ç¸å
³é
ç½® |
| | | inspur: |
| | | appId: 1205972857687900160 |
| | | appSecret: MgzPMDYwMTIwMjYxNzQ2NDA3OTYGqt |
| | | ruoyi: |
| | | # åç§° |
| | | name: RuoYi |
copy from src/main/resources/application-tide.yml
copy to src/main/resources/application-rlzyxt.yml
| Îļþ´Ó src/main/resources/application-tide.yml ¸´ÖÆ |
| | |
| | | # 项ç®ç¸å
³é
ç½® |
| | | # è¯å¯¼-人åèµæºç³»ç»é¡¹ç®ç¸å
³é
ç½® |
| | | inspur: |
| | | appId: 1205972506809204736 |
| | | appSecret: 4g5AMDYwMTIwMjYxNzQ1MTcxNDE35h |
| | | ruoyi: |
| | | # åç§° |
| | | name: RuoYi |
| | |
| | | druid: |
| | | # ä¸»åºæ°æ®æº |
| | | master: |
| | | url: jdbc:mysql://127.0.0.1:3306/mis-ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://172.17.0.1:3306/mis-ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: root |
| | | password: zttZTT123! |
| | | # ä»åºæ°æ®æº |
| | |
| | | # redis é
ç½® |
| | | redis: |
| | | # å°å |
| | | host: 127.0.0.1 |
| | | # host: 172.17.0.1 |
| | | # host: 127.0.0.1 |
| | | host: 172.17.0.1 |
| | | # 端å£ï¼é»è®¤ä¸º6379 |
| | | port: 6379 |
| | | # æ°æ®åºç´¢å¼ |
copy from src/main/resources/application-tide.yml
copy to src/main/resources/application-sbglxt.yml
| Îļþ´Ó src/main/resources/application-tide.yml ¸´ÖÆ |
| | |
| | | # 项ç®ç¸å
³é
ç½® |
| | | # è¯å¯¼-设å¤ç®¡çç³»ç»é¡¹ç®ç¸å
³é
ç½® |
| | | inspur: |
| | | appId: 1205969741508771840 |
| | | appSecret: rnAvMDYwMTIwMjYxNzM0MTc4NDEIxC |
| | | ruoyi: |
| | | # åç§° |
| | | name: RuoYi |
copy from src/main/resources/application-tide.yml
copy to src/main/resources/application-scgkxt.yml
| Îļþ´Ó src/main/resources/application-tide.yml ¸´ÖÆ |
| | |
| | | # 项ç®ç¸å
³é
ç½® |
| | | # è¯å¯¼-ç产管æ§ç³»ç»é¡¹ç®ç¸å
³é
ç½® |
| | | inspur: |
| | | appId: 1205970458172719104 |
| | | appSecret: GFHKMDYwMTIwMjYxNzM3MDg3MDc0g1 |
| | | ruoyi: |
| | | # åç§° |
| | | name: RuoYi |
copy from src/main/resources/application-tide.yml
copy to src/main/resources/application-xtbgxt.yml
| Îļþ´Ó src/main/resources/application-tide.yml ¸´ÖÆ |
| | |
| | | # 项ç®ç¸å
³é
ç½® |
| | | # è¯å¯¼-åååå
¬ç³»ç»é¡¹ç®ç¸å
³é
ç½® |
| | | inspur: |
| | | appId: 1205970862683979776 |
| | | appSecret: 9UR1MDYwMTIwMjYxNzM4NDUxNTARkN |
| | | ruoyi: |
| | | # åç§° |
| | | name: RuoYi |
copy from src/main/resources/application-tide.yml
copy to src/main/resources/application-yxglxt.yml
| Îļþ´Ó src/main/resources/application-tide.yml ¸´ÖÆ |
| | |
| | | # 项ç®ç¸å
³é
ç½® |
| | | # è¯å¯¼-è¥é管çç³»ç»é¡¹ç®ç¸å
³é
ç½® |
| | | inspur: |
| | | appId: 1205972006802030592 |
| | | appSecret: BgpqMDYwMTIwMjYxNzQzMTc5MjkKou |
| | | ruoyi: |
| | | # åç§° |
| | | name: RuoYi |
| | |
| | | druid: |
| | | # ä¸»åºæ°æ®æº |
| | | master: |
| | | url: jdbc:mysql://127.0.0.1:3306/mis-ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://172.17.0.1:3306/mis-ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: root |
| | | password: zttZTT123! |
| | | # ä»åºæ°æ®æº |
| | |
| | | # redis é
ç½® |
| | | redis: |
| | | # å°å |
| | | host: 127.0.0.1 |
| | | # host: 172.17.0.1 |
| | | # host: 127.0.0.1 |
| | | host: 172.17.0.1 |
| | | # 端å£ï¼é»è®¤ä¸º6379 |
| | | port: 6379 |
| | | # æ°æ®åºç´¢å¼ |
| | |
| | | # Springé
ç½® |
| | | spring: |
| | | profiles: |
| | | active: tide |
| | | active: cwglxt |
| | | #10.136.58.65 è´¢å¡ç®¡çç³»ç» cwglxt |
| | | #10.136.58.66 设å¤ç®¡çç³»ç» sbglxt |
| | | #10.136.58.67 ç产管æ§ç³»ç» scgkxt |
| | | #10.136.58.68 åååå
¬ç³»ç» xtbgxt |
| | | #10.136.58.69 éè´ç®¡çç³»ç» cgglxt |
| | | #10.136.58.70 ä»å¨ç©æµç³»ç» ccwlxt |
| | | #10.136.58.71 è¥é管çç³»ç» yxglxt |
| | | #10.136.58.72 人åèµæºç³»ç» rlzyxt |
| | | #10.136.58.73 ç¯ä¿é¨ç¦ç³»ç» hbmjxt |
| | |
| | | <if test="phone != null and phone != ''">phone,</if> |
| | | <if test="email != null and email != ''">email,</if> |
| | | <if test="deptNick != null and deptNick != ''">dept_nick,</if> |
| | | <if test="tenantId != null and tenantId != ''">tenant_id,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | |
| | | <if test="phone != null and phone != ''">#{phone},</if> |
| | | <if test="email != null and email != ''">#{email},</if> |
| | | <if test="deptNick != null and deptNick != '' ">#{deptNick},</if> |
| | | <if test="tenantId != null and tenantId != '' ">#{tenantId},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | |
| | | FROM DepartmentHierarchy |
| | | WHERE parent_id = 100; |
| | | </select> |
| | | <select id="selectDeptByDeptName" resultType="com.ruoyi.project.system.domain.SysDept"> |
| | | <include refid="selectDeptVo"/> |
| | | WHERE d.dept_name = #{deptName} |
| | | LIMIT 1 |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | |
| | | <sql id="selectPostVo"> |
| | | select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark |
| | | from sys_post |
| | | from sys_post p |
| | | </sql> |
| | | |
| | | <select id="selectPostList" parameterType="com.ruoyi.project.system.domain.SysPost" resultMap="SysPostResult"> |
| | |
| | | <if test="postName != null and postName != ''"> |
| | | AND post_name like concat('%', #{postName}, '%') |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="status != null and status != ''">status,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | <if test="tenantId != null and tenantId != ''">tenant_id,</if> |
| | | create_time |
| | | )values( |
| | | <if test="postId != null and postId != 0">#{postId},</if> |
| | |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | <if test="tenantId != null and tenantId != ''">#{tenantId},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | |
| | | from sys_role r |
| | | left join sys_user_role ur on ur.role_id = r.role_id |
| | | left join sys_user u on u.user_id = ur.user_id |
| | | left join sys_user_dept d on u.user_id = d.user_id |
| | | </sql> |
| | | |
| | | <select id="selectRoleList" parameterType="com.ruoyi.project.system.domain.SysRole" resultMap="SysRoleResult"> |
| | |
| | | <if test="deptCheckStrictly != null">dept_check_strictly,</if> |
| | | <if test="status != null and status != ''">status,</if> |
| | | <if test="remark != null and remark != ''">remark,</if> |
| | | <if test="tenantId != null and tenantId != ''">tenant_id,</if> |
| | | <if test="createBy != null and createBy != ''">create_by,</if> |
| | | create_time |
| | | )values( |
| | |
| | | <if test="deptCheckStrictly != null">#{deptCheckStrictly},</if> |
| | | <if test="status != null and status != ''">#{status},</if> |
| | | <if test="remark != null and remark != ''">#{remark},</if> |
| | | <if test="tenantId != null and tenantId != ''">#{tenantId},</if> |
| | | <if test="createBy != null and createBy != ''">#{createBy},</if> |
| | | sysdate() |
| | | ) |
| | |
| | | <!-- é
ç½®é»è®¤çæ§è¡å¨.SIMPLEå°±æ¯æ®éæ§è¡å¨;REUSEæ§è¡å¨ä¼éç¨é¢å¤çè¯å¥(prepared statements);BATCHæ§è¡å¨å°éç¨è¯å¥å¹¶æ§è¡æ¹éæ´æ° -->
|
| | | <setting name="defaultExecutorType" value="SIMPLE" />
|
| | | <!-- æå® MyBatis æç¨æ¥å¿çå
·ä½å®ç° -->
|
| | | <setting name="logImpl" value="SLF4J" />
|
| | | <!-- <setting name="logImpl" value="org.apache.ibatis.logging.stdout.StdOutImpl" />-->
|
| | | <!-- <setting name="logImpl" value="SLF4J" />-->
|
| | | <setting name="logImpl" value="org.apache.ibatis.logging.stdout.StdOutImpl" />
|
| | | <!-- 使ç¨é©¼å³°å½åæ³è½¬æ¢å段 -->
|
| | | <!-- <setting name="mapUnderscoreToCamelCase" value="true"/> -->
|
| | | </settings>
|