fix 提交联调测试
This commit is contained in:
@@ -40,27 +40,32 @@ public class MealSupplementHandlerJob
|
|||||||
//档案不存在
|
//档案不存在
|
||||||
if (gainfo == null)
|
if (gainfo == null)
|
||||||
{
|
{
|
||||||
_logger.LogWarning("档案code:{code}不存在.flowno:{flowno}", item.Code, item.UniqueId);
|
//todo
|
||||||
continue;
|
//_logger.LogWarning("档案code:{code}不存在.flowno:{flowno}", item.Code, item.UniqueId);
|
||||||
|
//continue;
|
||||||
|
|
||||||
|
gainfo = new GainfoEntity() { No = Guid.NewGuid().ToString() };
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mealUser = await _dbContext.Queryable<GainfoMealEntity>().Where(x => x.UserNo == gainfo.No).SingleAsync();
|
|
||||||
if (mealUser == null)
|
}
|
||||||
{
|
|
||||||
mealUser = new GainfoMealEntity
|
|
||||||
{
|
|
||||||
Balance = 0,
|
|
||||||
BalanceOfRecharge = 0,
|
|
||||||
BalanceOfSubsidies = 0,
|
|
||||||
UserNo = gainfo.No,
|
|
||||||
UserCode = gainfo.Code,
|
|
||||||
Version = 0,
|
|
||||||
TenantId = gainfo.Factory,
|
|
||||||
};
|
|
||||||
|
|
||||||
await _dbContext.InsertAsync(mealUser);
|
mealUser = await _dbContext.Queryable<GainfoMealEntity>().Where(x => x.UserNo == gainfo.No).SingleAsync();
|
||||||
}
|
if (mealUser == null)
|
||||||
|
{
|
||||||
|
mealUser = new GainfoMealEntity
|
||||||
|
{
|
||||||
|
Balance = 0,
|
||||||
|
BalanceOfRecharge = 0,
|
||||||
|
BalanceOfSubsidies = 0,
|
||||||
|
UserNo = gainfo.No,
|
||||||
|
UserCode = gainfo.Code,
|
||||||
|
Version = 0,
|
||||||
|
TenantId = gainfo.Factory,
|
||||||
|
};
|
||||||
|
|
||||||
|
await _dbContext.InsertAsync(mealUser);
|
||||||
}
|
}
|
||||||
|
|
||||||
await SetMealSupplementAsync(mealUser, item);
|
await SetMealSupplementAsync(mealUser, item);
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class JinkoJIPService : IJinkoJIPService
|
|||||||
|
|
||||||
public async Task<string> SyncMealSupplementRecordsAsync(List<SyncMealSupplementRecordRequest> requests)
|
public async Task<string> SyncMealSupplementRecordsAsync(List<SyncMealSupplementRecordRequest> requests)
|
||||||
{
|
{
|
||||||
var requestUrl = "/JIP/DHR/DHR_DL_CALLBACK";
|
var requestUrl = "/JIP/DHR/DHR_DL_CALLBACK_UAT";
|
||||||
|
|
||||||
var json = requests.ToJson();
|
var json = requests.ToJson();
|
||||||
|
|
||||||
|
|||||||
@@ -52,9 +52,9 @@
|
|||||||
},
|
},
|
||||||
"JinkoOptions": {
|
"JinkoOptions": {
|
||||||
"Jip": {
|
"Jip": {
|
||||||
"BaseUrl": "http://jip.jinkosolar.com",
|
"BaseUrl": "http://172.16.202.34:8000",
|
||||||
"Key": "FACE-CUOJG9N7",
|
"Key": "FACE-7409WIBX",
|
||||||
"Secret": "130c2f2d-03a0-4720-8e25-538ffac7a7cb"
|
"Secret": "be0a4b88-cd80-4509-b9b9-865205d0d3d8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"RedisOptions": {
|
"RedisOptions": {
|
||||||
|
|||||||
Reference in New Issue
Block a user