生产管理模块代码调整
This commit is contained in:
@@ -46,21 +46,20 @@ namespace Tnb.EquipMgr
|
||||
};
|
||||
|
||||
var pagedList = await _repository.AsQueryable()
|
||||
.Where(it => it.station_code == input.station_code || string.IsNullOrEmpty(input.station_code))
|
||||
//.Where(it => it.station_code == input.station_code || string.IsNullOrEmpty(input.station_code))
|
||||
.Select(it => new EquipmentListOutput
|
||||
{
|
||||
id = it.id,
|
||||
eqp_code = it.eqp_code,
|
||||
eqp_name = it.eqp_name,
|
||||
eqp_type_code = it.eqp_type_code,
|
||||
accept_status = it.accept_status,
|
||||
supplier_code = it.supplier_code,
|
||||
accept_date = it.accept_date,
|
||||
eqp_code = it.code,
|
||||
eqp_name = it.name,
|
||||
eqp_type_code = SqlFunc.Subqueryable<EqpEquipType>().Where(x=>x.id == it.equip_type_id).Select(x=>x.code),
|
||||
//accept_status = it.accept_status,
|
||||
//supplier_code = it.supplier_code,
|
||||
install_date = it.install_date,
|
||||
use_department_code = it.use_department_code,
|
||||
//use_department_code = it.use_department_code,
|
||||
remark = it.remark,
|
||||
})
|
||||
.Mapper(it => it.accept_status = dic.ContainsKey(it.accept_status) ? dic[it.accept_status] : "")
|
||||
//.Mapper(it => it.accept_status = dic.ContainsKey(it.accept_status) ? dic[it.accept_status] : "")
|
||||
.ToPagedListAsync(input.currentPage, input.pageSize);
|
||||
return pagedList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user