审计代码修改

This commit is contained in:
liang.chao 2024-08-27 15:31:21 +08:00
parent 746a197914
commit 04131d8524
7 changed files with 12 additions and 11 deletions

View File

@ -190,7 +190,6 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService {
return AjaxResult.error("已领数量大于预领数量或该机具未在库"); return AjaxResult.error("已领数量大于预领数量或该机具未在库");
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
return AjaxResult.error("出库失败"); return AjaxResult.error("出库失败");
} }
return AjaxResult.success("出库成功"); return AjaxResult.success("出库成功");

View File

@ -125,7 +125,7 @@ public class BmProjectInfoController extends BaseController{
util.exportExcel(response, list, "往来单位"); util.exportExcel(response, list, "往来单位");
} }
@Log(title = "项目管理导入", businessType = BusinessType.IMPORT) /* @Log(title = "项目管理导入", businessType = BusinessType.IMPORT)
@RequiresPermissions("system:user:import") @RequiresPermissions("system:user:import")
@PostMapping("/importData") @PostMapping("/importData")
public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception
@ -134,6 +134,5 @@ public class BmProjectInfoController extends BaseController{
List<BmProjectInfo> bmProjectInfoList = util.importExcel(file.getInputStream()); List<BmProjectInfo> bmProjectInfoList = util.importExcel(file.getInputStream());
String message = bmProjectInfoService.importBmProjectInfo(bmProjectInfoList, updateSupport); String message = bmProjectInfoService.importBmProjectInfo(bmProjectInfoList, updateSupport);
return success(message); return success(message);
} }*/
} }

View File

@ -90,7 +90,7 @@ public class BmProjectLotController extends BaseController {
return bmProjectLotService.updateBmProjectLot(bmProjectLot); return bmProjectLotService.updateBmProjectLot(bmProjectLot);
} }
@Log(title = "项目管理导入", businessType = BusinessType.IMPORT) /* @Log(title = "项目管理导入", businessType = BusinessType.IMPORT)
@RequiresPermissions("system:user:import") @RequiresPermissions("system:user:import")
@PostMapping("/importData") @PostMapping("/importData")
public AjaxResult importData(MultipartFile file) throws Exception public AjaxResult importData(MultipartFile file) throws Exception
@ -99,6 +99,6 @@ public class BmProjectLotController extends BaseController {
List<BmProjectLotImport> bmProjectLotList = util.importExcel(file.getInputStream()); List<BmProjectLotImport> bmProjectLotList = util.importExcel(file.getInputStream());
String message = bmProjectLotService.importBmProjectLot(bmProjectLotList); String message = bmProjectLotService.importBmProjectLot(bmProjectLotList);
return success(message); return success(message);
} }*/
} }

View File

@ -162,7 +162,7 @@ public class BmUnitInfoController extends BaseController{
ExcelUtil<BmUnitInfo> util = new ExcelUtil<BmUnitInfo>(BmUnitInfo.class); ExcelUtil<BmUnitInfo> util = new ExcelUtil<BmUnitInfo>(BmUnitInfo.class);
util.exportExcel(response, list, "往来单位"); util.exportExcel(response, list, "往来单位");
} }
@ApiOperation(value = "往来单位导入") /* @ApiOperation(value = "往来单位导入")
@Log(title = "往来单位导入", businessType = BusinessType.IMPORT) @Log(title = "往来单位导入", businessType = BusinessType.IMPORT)
@RequiresPermissions("system:user:import") @RequiresPermissions("system:user:import")
@PostMapping("/importData") @PostMapping("/importData")
@ -173,6 +173,6 @@ public class BmUnitInfoController extends BaseController{
Long userId = SecurityUtils.getLoginUser().getUserid(); Long userId = SecurityUtils.getLoginUser().getUserid();
String message = bmUnitInfoService.importUser(bmUnitInfoList, updateSupport, userId); String message = bmUnitInfoService.importUser(bmUnitInfoList, updateSupport, userId);
return success(message); return success(message);
} }*/
} }

View File

@ -30,6 +30,7 @@ import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.interceptor.TransactionAspectSupport; import org.springframework.transaction.interceptor.TransactionAspectSupport;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.math.BigDecimal;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
@ -407,6 +408,8 @@ public class IotMachineServiceImpl implements IotMachineService {
iotLocationVo.setBeginTime(jsonObject.getString("starttime")); iotLocationVo.setBeginTime(jsonObject.getString("starttime"));
iotLocationVo.setEndTime(jsonObject.getString("endtime")); iotLocationVo.setEndTime(jsonObject.getString("endtime"));
iotLocationVo.setAddress(jsonObject.getString("address")); iotLocationVo.setAddress(jsonObject.getString("address"));
iotLocationVo.setCallat(new BigDecimal(jsonObject.getString("callat")));
iotLocationVo.setCallon(new BigDecimal(jsonObject.getString("callon")));
iotLocationVoList.add(iotLocationVo); iotLocationVoList.add(iotLocationVo);
} }
} }

View File

@ -16,11 +16,11 @@ spring:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 127.0.0.1:8848 server-addr: 127.0.0.1:8848
namespace: sgzb_nwjj namespace: sgzb_cloud_dev_nw
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 127.0.0.1:8848 server-addr: 127.0.0.1:8848
namespace: sgzb_nwjj namespace: sgzb_cloud_dev_nw
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置

View File

@ -5,4 +5,4 @@ spring:
name: sgzb-material name: sgzb-material
profiles: profiles:
# 环境配置 # 环境配置
active: sgzb_cloud_local active: sgzb_nw_local