fix 提交联调测试
This commit is contained in:
@@ -40,27 +40,32 @@ public class MealSupplementHandlerJob
|
||||
//档案不存在
|
||||
if (gainfo == null)
|
||||
{
|
||||
_logger.LogWarning("档案code:{code}不存在.flowno:{flowno}", item.Code, item.UniqueId);
|
||||
continue;
|
||||
//todo
|
||||
//_logger.LogWarning("档案code:{code}不存在.flowno:{flowno}", item.Code, item.UniqueId);
|
||||
//continue;
|
||||
|
||||
gainfo = new GainfoEntity() { No = Guid.NewGuid().ToString() };
|
||||
}
|
||||
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);
|
||||
|
||||
@@ -58,7 +58,7 @@ public class JinkoJIPService : IJinkoJIPService
|
||||
|
||||
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();
|
||||
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
},
|
||||
"JinkoOptions": {
|
||||
"Jip": {
|
||||
"BaseUrl": "http://jip.jinkosolar.com",
|
||||
"Key": "FACE-CUOJG9N7",
|
||||
"Secret": "130c2f2d-03a0-4720-8e25-538ffac7a7cb"
|
||||
"BaseUrl": "http://172.16.202.34:8000",
|
||||
"Key": "FACE-7409WIBX",
|
||||
"Secret": "be0a4b88-cd80-4509-b9b9-865205d0d3d8"
|
||||
}
|
||||
},
|
||||
"RedisOptions": {
|
||||
|
||||
Reference in New Issue
Block a user