|
|
|
@ -32,6 +32,7 @@ import com.glxp.api.admin.res.basic.SpsSyncDataResponse;
|
|
|
|
|
import com.glxp.api.admin.res.basic.SpsSyncOrderResponse;
|
|
|
|
|
import com.glxp.api.admin.service.basic.BasicDownloadService;
|
|
|
|
|
import com.glxp.api.admin.service.basic.BussinessChangeTypeService;
|
|
|
|
|
import com.glxp.api.admin.service.basic.BussinessTypeService;
|
|
|
|
|
import com.glxp.api.admin.service.basic.EntrustReceService;
|
|
|
|
|
import com.glxp.api.admin.service.info.SystemParamConfigService;
|
|
|
|
|
import com.glxp.api.admin.service.inout.OrderService;
|
|
|
|
@ -89,6 +90,8 @@ public class DlBasicService {
|
|
|
|
|
@Resource
|
|
|
|
|
private BasicDownloadService basicDownloadService;
|
|
|
|
|
@Resource
|
|
|
|
|
private BussinessTypeService bussinessTypeService;
|
|
|
|
|
@Resource
|
|
|
|
|
private SystemParamConfigService systemParamConfigService;
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(DlBasicService.class);
|
|
|
|
|
|
|
|
|
@ -355,9 +358,18 @@ public class DlBasicService {
|
|
|
|
|
List<BussinessTypeEntity> bussinessTypeEntities = syncDataResponse.getBussinessTypeEntities();
|
|
|
|
|
BussinessTypeDao mapper = batchSession.getMapper(BussinessTypeDao.class);
|
|
|
|
|
for (BussinessTypeEntity bussinessTypeEntity : bussinessTypeEntities) {
|
|
|
|
|
|
|
|
|
|
//更新或覆盖
|
|
|
|
|
BussinessTypeEntity tempEntity = bussinessTypeService.findBTByAction(bussinessTypeEntity.getAction());
|
|
|
|
|
if (tempEntity != null) {
|
|
|
|
|
BeanUtils.copyProperties(bussinessTypeEntity, tempEntity);
|
|
|
|
|
bussinessTypeEntity.setUpdateTime(null);
|
|
|
|
|
mapper.insertBussinessType(tempEntity);
|
|
|
|
|
} else {
|
|
|
|
|
bussinessTypeEntity.setUpdateTime(null);
|
|
|
|
|
mapper.insertBussinessType(bussinessTypeEntity);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
batchSession.commit();
|
|
|
|
|
remark.append("扫码单据类型:").append(syncDataResponse.getBussinessTypeEntities().size()).append("条\n");
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|