Compare commits

..

No commits in common. "42bdba2ae649d5999c6a5f6fd771f8c7ed057e43" and "25c0505d4073788af82d92100df0ee7127ab2f82" have entirely different histories.

4 changed files with 8 additions and 21 deletions

View File

@ -65,11 +65,8 @@ public class MaTypeServiceImpl implements ITypeService {
level = maType1.getLevel();
}
maType.setLevel(String.valueOf(Integer.parseInt(level) + 1));
maType.setCompanyId(maType1.getCompanyId());
maType.setCreateTime(DateUtils.getNowDate());
if (parentId == 0){
maType.setCompanyId("101");
}
System.out.println(maType);
int i = maTypeMapper.insertType(maType);
Long typeId = maType.getTypeId();
// 图片路径保存

View File

@ -92,6 +92,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
mt.type_name like concat('%',#{keyWord},'%') or
mm.ma_code like concat('%',#{keyWord},'%'))
</if>
order by lod.create_time desc
</select>
</mapper>

View File

@ -6,15 +6,10 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.bonus.sgzb.common.security.annotation.EnableCustomConfig;
import com.bonus.sgzb.common.security.annotation.EnableRyFeignClients;
import com.bonus.sgzb.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.web.servlet.MultipartConfigFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.util.unit.DataSize;
import javax.servlet.MultipartConfigElement;
/**
* 系统模块
*
*
* @author ruoyi
*/
@EnableCustomConfig
@ -22,9 +17,11 @@ import javax.servlet.MultipartConfigElement;
@EnableRyFeignClients
@SpringBootApplication
@EnableEncryptableProperties
public class SgzbSystemApplication {
public static void main(String[] args) {
public class SgzbSystemApplication
{
public static void main(String[] args)
{
SpringApplication.run(SgzbSystemApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 系统模块启动成功 ლ(´ڡ`ლ)゙ \n");
System.out.println("(♥◠‿◠)ノ゙ 系统模块启动成功 ლ(´ڡ`ლ)゙ \n" );
}
}
}

View File

@ -72,12 +72,6 @@ public class SysFileServiceImpl implements SysFileService {
if (!ALLOWED_EXTENSIONS.contains(fileExtension.toLowerCase())) {
throw new Exception("不支持该文件格式");
}
// 检查文件大小
long fileSize = item.getSize();
long maxSize = 20 * 1024 * 1024; // 20MB
if (fileSize > maxSize) {
throw new Exception("文件太大,请重新上传");
}
try {
String url = saveFile(request, item, photoType);
//AjaxResult res = fileClient.uploadFile(item);