Browse Source

后端bug修改

dev_kxc
慕月霜笙 11 months ago
parent
commit
5f31fa3db1
  1. 9
      jwtech-admin/src/main/java/com/kms/web/controller/common/CommonController.java
  2. 2
      jwtech-framework/src/main/java/com/jianwei/common/config/JianweiConfig.java
  3. 2
      jwtech-system/src/main/java/com/kms/enterprise/controller/BsSgcYxjdEnterpriseInfoController.java
  4. 20
      jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdEnterpriseInfoMapper.xml

9
jwtech-admin/src/main/java/com/kms/web/controller/common/CommonController.java

@ -69,7 +69,14 @@ public class CommonController
// String downloadPath = localPath + StringUtils.substringAfter(fileName, Constants.RESOURCE_PREFIX); // String downloadPath = localPath + StringUtils.substringAfter(fileName, Constants.RESOURCE_PREFIX);
String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1); String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1);
String filePath = JianweiConfig.getDownloadPath() + fileName;
String[] parts = fileName.split("/");
StringBuilder desiredPath = new StringBuilder("/");
for (int i = 2; i < parts.length; i++) {
desiredPath.append(parts[i]).append("/");
}
desiredPath.deleteCharAt(desiredPath.length() - 1);
String filePath = JianweiConfig.getDownloadPath() + desiredPath.toString();
// // 下载名称 // // 下载名称
// String downloadName = StringUtils.substringAfterLast(downloadPath, "/"); // String downloadName = StringUtils.substringAfterLast(downloadPath, "/");

2
jwtech-framework/src/main/java/com/jianwei/common/config/JianweiConfig.java

@ -148,7 +148,7 @@ public class JianweiConfig
*/ */
public static String getDownloadPath() public static String getDownloadPath()
{ {
return getProfile() + "/download/"; return getProfile() ;
} }
/** /**

2
jwtech-system/src/main/java/com/kms/enterprise/controller/BsSgcYxjdEnterpriseInfoController.java

@ -49,7 +49,7 @@ import com.kms.enterprise.service.BsSgcYxjdEnterpriseInfoService;
* @date 2024-01-03 * @date 2024-01-03
*/ */
@RestController @RestController
@RequestMapping("/enterprise/enterpriseInfo") @RequestMapping("enterprise/enterpriseInfo")
@Api(tags = "企业基本信息") @Api(tags = "企业基本信息")
public class BsSgcYxjdEnterpriseInfoController extends BaseController public class BsSgcYxjdEnterpriseInfoController extends BaseController
{ {

20
jwtech-system/src/main/resources/mapper/enterprise/BsSgcYxjdEnterpriseInfoMapper.xml

@ -85,24 +85,24 @@
<where> <where>
1=1 1=1
<if test='userId != "1"'> <if test='userId != "1"'>
AND unified_social_credit_code = ( <!-- AND unified_social_credit_code = (-->
SELECT <!-- SELECT-->
IFNULL( sd.unified_social_credit_code,1) <!-- IFNULL( sd.unified_social_credit_code,1)-->
FROM <!-- FROM-->
sys_user su left join sys_dept sd on su.dept_id=sd.id <!-- sys_user su left join sys_dept sd on su.dept_id=sd.id-->
AND su.id=#{userId} LIMIT 1) <!-- AND su.id=#{userId} LIMIT 1)-->
</if> </if>
<if test="enterpriseName!=null and enterpriseName!=''"> <if test="enterpriseName!=null and enterpriseName!=''">
and enterprise_name like concat('%',#{enterpriseName},'%') and enterprise_name like concat('%',#{enterpriseName},'%')
</if> </if>
<!-- <if test=' adcd != null and adcd !=""'>--> <if test=' adcd != null and adcd !=""'>
<!-- and adcd like concat(#{adcd},'%')--> and adcd like concat(#{adcd},'%')
<!-- </if>--> </if>
<if test="queryAccd != null and queryAccd != ''"> <if test="queryAccd != null and queryAccd != ''">
and adcd like concat(#{queryAccd},'%') and adcd like concat(#{queryAccd},'%')
</if> </if>
</where> </where>
<!-- order by ${orderBy} desc--> order by ${orderBy} desc
</if> </if>
<if test="userType==99"> <if test="userType==99">
<where> <where>

Loading…
Cancel
Save