去除warn
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Tnb.PerMgr
|
||||
string equipId = dic["equip_id"];
|
||||
var db = _repository.AsSugarClient();
|
||||
var equipment = await db.Queryable<EqpEquipment>().Where(x => x.id == equipId).SingleAsync();
|
||||
string equipTypeId = equipment?.equip_type_id;
|
||||
string? equipTypeId = equipment?.equip_type_id;
|
||||
|
||||
//List<PerProcessParamType> perProcessParamTypes = await _repository.GetListAsync(x => x.equip_type_id == equipTypeId);
|
||||
var result = await db.Queryable<PerProcessParamType>()
|
||||
@@ -94,29 +94,29 @@ namespace Tnb.PerMgr
|
||||
{
|
||||
PerProcessParamEditRecord record = new PerProcessParamEditRecord
|
||||
{
|
||||
process_param_id = item.process_param_id,
|
||||
process_param_id = item?.process_param_id ?? "",
|
||||
old_value = processStandardsD.value,
|
||||
new_value = item.value,
|
||||
new_value = item?.value ?? 0,
|
||||
modify_id = _userManager.UserId,
|
||||
modify_time = DateTime.Now,
|
||||
org_id = _userManager.GetUserInfo().Result.organizeId,
|
||||
equip_id = perProcessStandardsH.equip_id,
|
||||
process_param_name = processParam.name
|
||||
};
|
||||
db.Insertable<PerProcessParamEditRecord>(record).ExecuteCommandAsync();
|
||||
await db.Insertable<PerProcessParamEditRecord>(record).ExecuteCommandAsync();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(item.id))
|
||||
if (item==null || string.IsNullOrEmpty(item.id))
|
||||
{
|
||||
PerProcessStandardsD insertObj = new PerProcessStandardsD()
|
||||
{
|
||||
value = item.value,
|
||||
process_param_id = item.process_param_id,
|
||||
process_standards_id = item.process_standards_id,
|
||||
process_param_type_id = item.process_param_type_id,
|
||||
daq_id = item.daq_id,
|
||||
value = item?.value ?? 0,
|
||||
process_param_id = item?.process_param_id ?? "",
|
||||
process_standards_id = item?.process_standards_id ?? "",
|
||||
process_param_type_id = item?.process_param_type_id ?? "",
|
||||
daq_id = item?.daq_id??"",
|
||||
};
|
||||
|
||||
insertIds.Add(insertObj.id);
|
||||
@@ -152,7 +152,7 @@ namespace Tnb.PerMgr
|
||||
var db = _repository.AsSugarClient();
|
||||
var perProcessStandardsH = await db.Queryable<PerProcessStandardsH>().SingleAsync(x => x.id == id);
|
||||
var equipment = await db.Queryable<EqpEquipment>().Where(x => x.id == perProcessStandardsH.equip_id).SingleAsync();
|
||||
string equipTypeId = equipment?.equip_type_id;
|
||||
string? equipTypeId = equipment?.equip_type_id;
|
||||
|
||||
var result = await db.Queryable<PerProcessParamType>()
|
||||
.Where(a => a.equip_type_id == equipTypeId)
|
||||
|
||||
Reference in New Issue
Block a user