fix(approve): 修复审批流程中的数据类型和业务逻辑问题
- 将 ApproveLog 中的 approveId 从 Long 类型改为 String 类型
- 修复 Excel 导出时日期格式问题,将开始时间和结束时间格式统一为 yyyy-MM-dd HH:mm:ss
- 修改删除接口参数类型,将删除方法中的 ID 列表从 Long 类型改为 String 类型
- 更新审批编号生成方式,使用新的计数方法替代原有方法
- 修复删除审批时传递参数的类型转换问题
- 移除 VO 类中不必要的导入包和注解
- 修复生产路由服务中产品模型 ID 和计划数量的赋值逻辑
- 为产品型号反向新增功能增加 ID 查询支持
- 在销售台账产品服务中集成产品型号反向新增逻辑
| | |
| | | |
| | | @Override |
| | | public IPage<SalesLedgerProductionAccountingDto> pageProductionAccounting(SalesLedgerProductionAccountingDto salesLedgerProductionAccountingDto, Page page) { |
| | | // TODO 管理员查询所有,其他人只能查自己 |
| | | boolean admin = SecurityUtils.isAdmin(SecurityUtils.getUserId()); |
| | | if (!admin) { |
| | | salesLedgerProductionAccountingDto.setSchedulingUserName(SecurityUtils.getUsername()); |
| | | salesLedgerProductionAccountingDto.setSchedulingUserName(SecurityUtils.getLoginUser().getNickName()); |
| | | } |
| | | if (salesLedgerProductionAccountingDto.getDateType().equals("month")) { |
| | | salesLedgerProductionAccountingDto.setEntryDate(null); |