bug
This commit is contained in:
@@ -3,8 +3,10 @@ using JNPF.Logging;
|
||||
using JNPF.Message;
|
||||
using JNPF.Message.Interfaces.Message;
|
||||
using JNPF.Message.Service;
|
||||
using JNPF.Systems.Interfaces.System;
|
||||
using SqlSugar;
|
||||
using Tnb.EquipMgr.Entities;
|
||||
using Tnb.BasicData;
|
||||
|
||||
namespace JNPF.TaskScheduler.Listener
|
||||
{
|
||||
@@ -19,6 +21,7 @@ namespace JNPF.TaskScheduler.Listener
|
||||
// _repository = repository;
|
||||
// }
|
||||
private IMessageService _sendMessageService => App.GetService<IMessageService>();
|
||||
private IBillRullService _billRuleService => App.GetService<IBillRullService>();
|
||||
[SpareTime("0 0 0 * * ?", "生成保养计划", ExecuteType = SpareTimeExecuteTypes.Serial, StartNow = false)]
|
||||
public async void GenerateSpotInspectionPlan(SpareTimer timer, long count)
|
||||
{
|
||||
@@ -105,7 +108,8 @@ namespace JNPF.TaskScheduler.Listener
|
||||
if (equipments.FirstOrDefault(x => x.id == item.equip_id) == null)
|
||||
continue;
|
||||
|
||||
string code = $"{now.ToString("yyyyMMdd") + (index++).ToString().PadLeft(3, '0')}";
|
||||
// string code = $"{now.ToString("yyyyMMdd") + (index++).ToString().PadLeft(3, '0')}";
|
||||
string code = await _billRuleService.GetBillNumber(CodeTemplateConst.MAINTENANCERECORDFIJIPROJECT_CODE);
|
||||
tobeCreateList.Add(new EqpMaintainRecordH()
|
||||
{
|
||||
code = code,
|
||||
@@ -290,7 +294,8 @@ namespace JNPF.TaskScheduler.Listener
|
||||
if (toolMoldList.FirstOrDefault(x => x.id == item.mold_id) == null)
|
||||
continue;
|
||||
|
||||
string code = $"{now.ToString("yyyyMMdd") + (index++).ToString().PadLeft(3, '0')}";
|
||||
// string code = $"{now.ToString("yyyyMMdd") + (index++).ToString().PadLeft(3, '0')}";
|
||||
string code = await _billRuleService.GetBillNumber(CodeTemplateConst.MOLDMAINTENANCE_CODE);
|
||||
toolMoldTobeCreateList.Add(new ToolMoldMaintainRecordH()
|
||||
{
|
||||
code = code,
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using JNPF.Common.Security;
|
||||
using JNPF.Logging;
|
||||
using JNPF.Message.Interfaces.Message;
|
||||
using JNPF.Systems.Interfaces.System;
|
||||
using SqlSugar;
|
||||
using Tnb.BasicData;
|
||||
using Tnb.EquipMgr.Entities;
|
||||
|
||||
namespace JNPF.TaskScheduler.Listener
|
||||
@@ -17,6 +19,7 @@ namespace JNPF.TaskScheduler.Listener
|
||||
// _repository = repository;
|
||||
// }
|
||||
private IMessageService _sendMessageService => App.GetService<IMessageService>();
|
||||
private IBillRullService _billRuleService => App.GetService<IBillRullService>();
|
||||
[SpareTime("0 0,30 * * * ?", "生成点巡检计划", ExecuteType = SpareTimeExecuteTypes.Serial, StartNow = false)]
|
||||
public async void GenerateSpotInspectionPlan(SpareTimer timer, long count)
|
||||
{
|
||||
@@ -90,7 +93,8 @@ namespace JNPF.TaskScheduler.Listener
|
||||
if (equipments.FirstOrDefault(x => x.id == item.equip_id) == null)
|
||||
continue;
|
||||
|
||||
string code = $"{now.ToString("yyyyMMddHHmm") + (index++).ToString().PadLeft(3, '0')}";
|
||||
// string code = $"{now.ToString("yyyyMMddHHmm") + (index++).ToString().PadLeft(3, '0')}";
|
||||
string code = await _billRuleService.GetBillNumber(CodeTemplateConst.SPOTINSPECTIONEXECUTIONSHEET_CODE);
|
||||
tobeCreateList.Add(new EqpSpotInsRecordH()
|
||||
{
|
||||
id = SnowflakeIdHelper.NextId(),
|
||||
|
||||
Reference in New Issue
Block a user